Share via


JobServer.DropJobByID Method

Removes the job with the specified ID value.

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

Syntax

'Declaration
Public Sub DropJobByID ( _
    jobid As Guid _
)
'Usage
Dim instance As JobServer 
Dim jobid As Guid

instance.DropJobByID(jobid)
public void DropJobByID(
    Guid jobid
)
public:
void DropJobByID(
    Guid jobid
)
member DropJobByID : 
        jobid:Guid -> unit
public function DropJobByID(
    jobid : Guid
)

Parameters

  • jobid
    Type: System.Guid
    A Guid system object value that specifies the job ID value.

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)