Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy SQL Server Agent Job

Status
Not open for further replies.

ChewDoggie

Programmer
Joined
Mar 14, 2005
Messages
604
Location
US
Hello All,

We're attempting to copy some SQL Server Agent Jobs from one server to another.

We went on the old server, right-clicked on the job, selected 'Script Job As', then selected 'Create To', then selected 'New Query Editor Window'. The script to create the job appeared in the window. Then we disconnected from the old server and connected to the new server and 'Executed' the script. The output said, "command completed successfully", or something to that effect.

But when we right-click on the Jobs folder in SQL Server, and refresh the list, the job doesn't appear. Another strange thing, if we re-connect to the old server, there are now TWO of the jobs in the Jobs Folder on that server.

Does anyone know what's going on ?

FYI...we did not accidently reconnect to the old server before running the script.

Chew

10% of your life is what happens to you. 90% of your life is how you deal with it.
 
We were never able to re-create the Jobs via the scripts. So, we just went into the Job Activity Monitor, double-clicked on a job and then copied the params from one existing job to a new job on the new server.

Closed post.

C.


10% of your life is what happens to you. 90% of your life is how you deal with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top