Share via


JobServer.StartMonitor 메서드

Starts monitoring the local SQL Server Agent Service by an instance of SQL Server.

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

구문

‘선언
Public Sub StartMonitor ( _
    netSendAddress As String, _
    restartAttempts As Integer _
)
‘사용 방법
Dim instance As JobServer 
Dim netSendAddress As String 
Dim restartAttempts As Integer

instance.StartMonitor(netSendAddress, _
    restartAttempts)
public void StartMonitor(
    string netSendAddress,
    int restartAttempts
)
public:
void StartMonitor(
    String^ netSendAddress, 
    int restartAttempts
)
member StartMonitor : 
        netSendAddress:string * 
        restartAttempts:int -> unit
public function StartMonitor(
    netSendAddress : String, 
    restartAttempts : int
)

매개 변수

  • netSendAddress
    유형: System.String
    A String value that specifies a net send address to notify when the SQL Server Agent Service has stopped.
  • restartAttempts
    유형: System.Int32
    An Int32 value that specifies the number of times to attempt to restart the SQL Server Agent Service if it has stopped.

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

참고 항목

참조

JobServer 클래스

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

관련 자료

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

SQL Server 에이전트 저장 프로시저(Transact-SQL)