SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Scheduler SP with Sample Log Creation/Exec Scripts

By GabeGreen, 2002/01/06

Total article views: 87 | Views in the last 30 days: 4

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

By GabeGreen, 2002/01/06

Total article views: 87 | Views in the last 30 days: 4
Your response
 
 
Related tags
 
Related content
Like this? Try these...
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com