Freigeben über


JobServer.CycleErrorLog-Methode

Closes and renames the current error log, and then creates a new empty error log file.

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

Syntax

'Declaration
Public Sub CycleErrorLog
'Usage
Dim instance As JobServer

instance.CycleErrorLog()
public void CycleErrorLog()
public:
void CycleErrorLog()
member CycleErrorLog : unit -> unit
public function CycleErrorLog()

Beispiele

Planen von automatischen, administrativen Tasks im SQL Server-Agent

Siehe auch

Verweis

JobServer Klasse

Microsoft.SqlServer.Management.Smo.Agent-Namespace

Andere Ressourcen

Automatisierte Administrationstasks (SQL Server-Agent)

sp_cycle_agent_errorlog (Transact-SQL)