ReadErrorLog Method

SQLServer Object

Description

Reads the specified SQL Server error log. Returns results in a QueryResult object.

Visual Basic

QueryResults = SQLServer.ReadErrorLog ( [[LogNumber :=] lLogNumber] )

C++

HRESULT pSQLServer->ReadErrorLog (
LPSQLOLEQUERYRESULTS*
ppQueryResults,
long
lLogNumber = 0 );

Elements

Element Type Description

QueryResults QueryResults Returned QueryResults object
lLogNumber Long Log number

QueryResults

ColumnName ColumnType

C:\SQL60\LOG\ERRORLOG SQLOLE_DTypeChar