Share via


JobServer.CycleErrorLog 메서드

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

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Sub CycleErrorLog
‘사용 방법
Dim instance As JobServer

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

SQL Server 에이전트에서 자동 관리 태스크 예약

참고 항목

참조

JobServer 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스

관련 자료

관리 태스크 자동화(SQL Server 에이전트)

sp_cycle_agent_errorlog(Transact-SQL)