Share via


Modify a Job

This topic describes how to change the properties of Microsoft SQL Server Agent jobs in SQL Server 2012 by using SQL Server Management Studio, Transact-SQL, or SQL Server Management Objects.

In This Topic

  • Before you begin: ,

    Limitations and Restrictions

    Security

  • To modify a job, using:

    SQL Server Management Studio

    Transact-SQL

    SQL Server Management Objects

Before You Begin

Limitations and Restrictions

A SQL Server Agent master job cannot be targeted at both local and remote servers.

Security

Unless you are a member of the sysadmin fixed server role, you can only modify jobs that you own. For detailed information, see Implement SQL Server Agent Security.

Arrow icon used with Back to Top link [Top]

Using SQL Server Management Studio

To modify a job

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

  2. Expand SQL Server Agent, expand Jobs, right-click the job you want to modify, and then click Properties.

  3. In the Job Properties dialog box, update the job's properties, steps, schedule, alerts, and notifications using the corresponding pages.

Arrow icon used with Back to Top link [Top]

Using Transact-SQL

To modify a job

  1. In Object Explorer, connect to an instance of the Database Engine, and then expand that instance.

  2. On the toolbar, click New Query.

  3. In the query window, use the following system stored procedures to modify a job.

Arrow icon used with Back to Top link [Top]

Using SQL Server Management Objects

To modify a job

Use the Job class by using a programming language that you choose, such as Visual Basic, Visual C#, or PowerShell. For more information, see SQL Server Management Objects (SMO).

Arrow icon used with Back to Top link [Top]