Share via


JobServer.ReadErrorLog Method

Enumerates the error log.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function ReadErrorLog As DataTable
'Usage
Dim instance As JobServer 
Dim returnValue As DataTable 

returnValue = instance.ReadErrorLog()
public DataTable ReadErrorLog()
public:
DataTable^ ReadErrorLog()
member ReadErrorLog : unit -> DataTable
public function ReadErrorLog() : DataTable

Return Value

Type: System.Data.DataTable
A DataTable object value that contains the error log details.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

ReadErrorLog Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)