JobServer.DropJobsByServer Method

Removes the job with the specified server.

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

Syntax

'Declaration
Public Sub DropJobsByServer ( _
    serverName As String _
)
'Usage
Dim instance As JobServer 
Dim serverName As String

instance.DropJobsByServer(serverName)
public void DropJobsByServer(
    string serverName
)
public:
void DropJobsByServer(
    String^ serverName
)
member DropJobsByServer : 
        serverName:string -> unit
public function DropJobsByServer(
    serverName : String
)

Parameters

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_delete_job (Transact-SQL)