Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

sp_update_job for all jobs.

By Timothy A Wiseman,

This script will generate a sp_update_job statement for every job on the server. In order to use it, populate the appropriate paramaters in the "Populate the Variables" section and execute the script. If testing is set to 1, it will generate the appropriate commands, but display instead of executing them. If testing is set to 0, it will execute the commands

This may be useful in cases such as:
1. A server which has never had a configured operator needs to be configured with an operator and on failure notifications need to be set for every single job. (This happens to be why it was written)
2. Paging ability is added to a server which did not have it before
3. A new policy is created which specifies that all jobs will be owned by a single account, such as a designated service account.
4. All jobs need to be temporarily disabled without actually turning the agent entirely off (or reenabled when they are all off)

Total article views: 1504 | Views in the last 30 days: 5
 
Related Articles
FORUM

How to track the Errors which occurs while a store procedure is executed in SQL Server 2000

How to track the Errors which occurs while a store procedure is executed in SQL Server 2000

FORUM

Stored Procuders which has multiple execution plans

Stored Procuders which has multiple execution plans

FORUM

Linked Server Error while executing a stored procedure

Error occuring while executing a SP which has calls to another server through linked servers

FORUM

Trying to execute two SSIS packages simultaneously which have SQL Server Transfer Objects tasks in them, and getting "innerPackage.dtsx" contention issues

Trying to execute two SSIS packages simultaneously which have SQL Server Transfer Objects tasks in t...

FORUM

how to retify error 5004 to use alter database, the database must be in a writable state in which a checkpoint can be executed in sql server 2000

how to retify error 5004 to use alter database, the database must be in a writable state in which a ...

Tags
agent    
jobs    
sp_update_job    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones