Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Bitz
Starting Member
19 Posts |
Posted - 2004-10-29 : 19:19:07
|
| Hi Everyone,I manage a several instances that have about 50 jobs on each instance. I also have one Disaster Recovery instance for each Production Instance that I manage. (So I'd say around 140 jobs total).I've been trying to find a way to script the Jobs, scrub them (to change the server name/file paths where needed, for example), and apply them to the DR servers.1) Generate Scripts command works, but this is a manual process and I am seeking to eliminate this and automate it.2) I've looked at scptxfr.exe and unfortunately it does not script jobs.3) Backing up and restoring msdb is not an option since I have additional jobs on the DR servers for monitoring purposes.4) I believe that there may be a SQL-DMO script for this? (I've searched for 2 hours now and haven't seen one). I do not have access to Visual Studio to tweak it (effectively). I suppose I would use sp_OA stored procs to execute it?Thanks for any insights you can provide on this matter.CW Speer |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-10-29 : 19:26:10
|
| http://www.nigelrivett.net/DMOScriptAllDatabases.htmlsp s_ScriptObjectsSearch for JOBSOr add all the SPs and just call with JOBS as parameter.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|