Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AgentLogFile Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The AgentLogFile property specifies the SQL Server Agent log path and file name.

object.AgentLogFile [= value]
object

An expression that evaluates to an object in the Applies To list

value

A string that specifies the path and file name

String

Read/write

HRESULT GetAgentLogFile(SQLDMO_LPBSTR pRetVal);
HRESULT SetAgentLogFile(SQLDMO_LPCSTR NewValue);

By default, the SQL Server Agent log is stored as c:\\Program Files\Microsoft SQL Server\90\mssql90\Log\\Sqlagent.out. Use the AgentLogFile property to specify a location other than the default when running multiple instances of SQL Server Agent.

NoteNote

AgentLogFile can be used with SQL Server version 7.0 and later.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.