Share via


JobServer.DropJobsByLogin Method

Removes the job with the specified login name.

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

Syntax

'Declaration
Public Sub DropJobsByLogin ( _
    login As String _
)
'Usage
Dim instance As JobServer 
Dim login As String

instance.DropJobsByLogin(login)
public void DropJobsByLogin(
    string login
)
public:
void DropJobsByLogin(
    String^ login
)
member DropJobsByLogin : 
        login:string -> unit
public function DropJobsByLogin(
    login : 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)