AgentLogFile Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The AgentLogFile property specifies the SQL Server Agent log path and file name.
語法
object.AgentLogFile [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A string that specifies the path and file name
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
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.
[!附註]
AgentLogFile can be used with SQL Server version 7.0 and later.