Share via


JobServer.RemoveJobByID Method

Removes a job with a specified ID value.

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

Syntax

'Declaration
Public Sub RemoveJobByID ( _
    jobId As Guid _
)
'Usage
Dim instance As JobServer 
Dim jobId As Guid

instance.RemoveJobByID(jobId)
public void RemoveJobByID(
    Guid jobId
)
public:
void RemoveJobByID(
    Guid jobId
)
member RemoveJobByID : 
        jobId:Guid -> unit
public function RemoveJobByID(
    jobId : Guid
)

Parameters

  • jobId
    Type: System.Guid
    A Guid system object value that uniquely identifies the job.

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)