Share via


Job.Stop Method

Stops executing the referenced job.

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

Syntax

'Declaration
Public Sub Stop
'Usage
Dim instance As Job

instance.Stop()
public void Stop()
public:
void Stop()
member Stop : unit -> unit
public function Stop()

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

Job Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_update_job (Transact-SQL)