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 list
- value
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. |