共用方式為


JobServer.MsxEnlist 方法

Enlists SQL Server Agent as a target server with the specified master server in a multiserver administration.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub MsxEnlist ( _
    masterServer As String, _
    location As String _
)
'用途
Dim instance As JobServer 
Dim masterServer As String 
Dim location As String

instance.MsxEnlist(masterServer, location)
public void MsxEnlist(
    string masterServer,
    string location
)
public:
void MsxEnlist(
    String^ masterServer, 
    String^ location
)
member MsxEnlist : 
        masterServer:string * 
        location:string -> unit
public function MsxEnlist(
    masterServer : String, 
    location : String
)

參數

  • masterServer
    型別:System.String
    A String value that specifies the name of the master server.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

JobServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_msx_enlist (Transact-SQL)