Share via


JobServer Object

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The JobServer object exposes attributes associated with SQL Server Agent. SQL Server Agent is responsible for executing scheduled jobs and notifying operators of Microsoft SQL Server error conditions or other SQL Server execution or job states.

顯示目前物件的 SQL-DMO 物件模型

備註

With the JobServer object, you can:

  • Start or stop SQL Server Agent on a server running SQL Server.

  • Manage alerts, jobs, and operators.

  • Enlist the server in a multiserver administration group.

[!附註]

The JobServer object is compatible with instances of SQL Server versions 7.0 and later. However, the JobServer2 object extends the functionality of the JobServer object for use with features that were introduced in SQL Server 2000.

請參閱

參考