SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Scheduler SP with Sample Log Creation/Exec Scripts

By GabeGreen,

Total article views: 166 | Views in the last 30 days: 3

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,

Total article views: 166 | Views in the last 30 days: 3
Your response
 
 
Related Articles
FORUM

SSIS Flat File read error retry?

How to retry a locked file?

FORUM

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

FORUM

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

FORUM

WaitForChildren: Children persisting. Retry

Cannot kill the spid relating to the log entry WaitForChildren: Children persisting. Retry

FORUM

How to read a Flat file present on a remote machine

How to read a Flat file present on a remote machine and retry for limited number of times until it a...

 
Contribute

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.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

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.

Steve Jones
Editor, SQLServerCentral.com