Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Enumerates the error log.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public Function ReadErrorLog ( _
logNumber As Integer _
) As DataTable
public DataTable ReadErrorLog (
int logNumber
)
public:
DataTable^ ReadErrorLog (
int logNumber
)
public DataTable ReadErrorLog (
int logNumber
)
public function ReadErrorLog (
logNumber : int
) : DataTable
Parametri
- logNumber
An Int32 value that specifies the log number of the log to be read. A value of 1 specifies the most recent error log file, a value of 9 specifies the oldest log file, and 0 specifies the current log file.
Valore restituito
A DataTable object value that contains the error log details.
Osservazioni
Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.
Esempio
How to: Create a Job with Steps and a Schedule in Visual Basic .NET
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
JobServer Class
JobServer Members
Microsoft.SqlServer.Management.Smo.Agent Namespace
Altre risorse
Automatizzazione delle attività amministrative (SQL Server Agent)
Scheduling Automatic Administrative Tasks in SQL Server Agent