JobServer.StartMonitor-Methode
Starts monitoring the local SQL Server Agent Service by an instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub StartMonitor ( _
netSendAddress As String, _
restartAttempts As Integer _
)
'Usage
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
)
Parameter
- netSendAddress
Typ: System.String
A String value that specifies a net send address to notify when the SQL Server Agent Service has stopped.
- restartAttempts
Typ: System.Int32
An Int32 value that specifies the number of times to attempt to restart the SQL Server Agent Service if it has stopped.
Beispiele
Planen von automatischen, administrativen Tasks im SQL Server-Agent
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo.Agent-Namespace
Andere Ressourcen
Automatisierte Administrationstasks (SQL Server-Agent)
Gespeicherte Prozeduren des SQL Server-Agents (Transact-SQL)