Share via


JobServer.MsxEnlist Method

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

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub MsxEnlist ( _
    masterServer As String, _
    location As String _
)
'Usage
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
)

Parameters

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_msx_enlist (Transact-SQL)