次の方法で共有


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.

Applies To: