ErrorLogPath Property (SQL-DMO)

The ErrorLogPath property specifies the operating system path and file name of the Microsoft® SQL Server™ error log.

Applies To

Registry Object

Syntax

object.ErrorLogPath [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value String specifying an operating system file

Remarks

When using the ErrorLogPath property to specify an error log file name, set only the path-qualified file name. Do not specify a file name extension. SQL Server appends an integer as an extension, using the value to indicate the current error log file.

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetErrorLogPath(SQLDMO_LPBSTR pRetVal);

HRESULT SetErrorLogPath(SQLDMO_LPCSTR NewValue);


Note SQL-DMO strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference by using SysFreeString.


  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.