Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 4.22 KB

File metadata and controls

79 lines (51 loc) · 4.22 KB
title Modify a Job
ms.prod sql
ms.prod_service sql-tools
ms.technology ssms
ms.topic conceptual
helpviewer_keywords
jobs [SQL Server Agent], modifying
modifying jobs
SQL Server Agent jobs, modifying
ms.assetid dd5e5f20-20c4-4ab9-a19a-db87577dcd43
author markingmyname
ms.author maghan
ms.manager jroth
ms.reviewer
ms.custom seo-lt-2019
ms.date 01/19/2017
monikerRange = azuresqldb-mi-current || >= sql-server-2016 || = sqlallproducts-allversions

Modify a Job

[!INCLUDEappliesto-ss-asdbmi-xxxx-xxx-md]

Important

On Azure SQL Database Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Database Managed Instance T-SQL differences from SQL Server for details.

This topic describes how to change the properties of [!INCLUDEmsCoName] [!INCLUDEssNoVersion] Agent jobs in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull], [!INCLUDEtsql], or SQL Server Management Objects.

Before You Begin

Limitations and Restrictions

A [!INCLUDEssNoVersion] 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.

Using SQL Server Management Studio

To modify a job

  1. In Object Explorer, connect to an instance of the [!INCLUDEssDEnoversion], 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.

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.

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).