October 31, 2005 at 8:06 am
October 31, 2005 at 8:39 am
Select the job(s) you want from Management-SQL Agent-Jobs in enterprise manager
Right click and choose all tasks->Generate script
November 1, 2005 at 8:25 am
One GOTCHA with the above approach:
If any jobs have T-SQL steps, and any of these steps contain the `GO' Batch separator, the script will not work on the target server without a little tweeking. This is because the Query Analyzer won't know if the GO is part of the job step, or part of the job step creation script.
To fix this, specify an alternate batch separator when you generate the script. Then tell QA to use the same batch separator when you run it.
jg
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply