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)

Scheduler SP with Sample Log Creation/Exec Scripts

By GabeGreen,

I created this SP for use with our morning DW builds. I use it to manage the execution of multiple jobs. It first starts up to a configureable number of jobs, monitors these jobs until one (or more) complete, and then starts additional jobs as needed. If any jobs fail, it will run the "transaction logs" (also posted) job, to clean up each of the databases, and then retry the failed jobs. A log file is also maintained during execution. Parameters are: @jobs = Comma seperated list of jobs to execute @log = Integer that represents which log file to use @retry_until_count = Number of times to retry a failed job @retry_until_date = Only retry failed jobs until this date/time @max_simultaneous = Maximum number of jobs to execute simultaneously Please create/modify the LOG files as needed. Also you'll need the "transaction logs", "shrink dbs", and "sp_wait_job" posts. Gabe Green

Total article views: 206 | Views in the last 30 days: 2
Related Articles

SSIS Flat File read error retry?

How to retry a locked file?


Replication issue Error executing a batch of commands. Retrying individual commands.

My Tran. Replication is working on other server, but when I crete new Subscription on new server I a...


SQL Days until Christmas

Calculate the days until christmas


Configuring Auto-Retry on SQL Server Agent

The goal of this post is to explain how to take advantage of Auto-Retry and why you will want to...


DTS retry with ActiveX ??

I've been looking up this issue for awhile now and haven't gotten to far. HEre is what I am trying t...


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

Already a member? Jump in:

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