Moving Jobs from one sql server 2005 to another sql server 2005

  • Hello,

    I need to copy all 120 jobs from one sql server 2005 to another sql server 2005, there is anyway to do this task fast?

    thanks

    nelson

  • Hi

    One way is, create script for each job using management studio one by one. And second is, you can write t-SQL script which quries dbo.sysjobs, dbo.sysjobschedules and dbo.sysjobsteps table of msdb database and generated the script for all jobs.

    Best Regards

    Nitin Patel

    http://www.EnlinkURL.com

    Regards,
    Nitin

  • Either create scripts for all the jobs or use the Transfer Jobs task in SSIS.

    [font="Verdana"]Markus Bohse[/font]

  • Hi,

    Yes i´m using the create scritp BUT when I run it on the second server i´m getting this error:

    A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - Uma conexão estabelecida foi anulada pelo software no computador host

    what is this?

    thanks

  • In ur SSMS, Go to SQL Server Agent -> Jobs

    right click jobs -> click Tasks -> Generate Scripts.

    Once u've your scripts ready, run those on ur target DB after u've restored all databases.



    Pradeep Singh

  • Incidently i too got that error when i tried to fire some queries after restoring DBs. i ran my query again and didnt get the error again 😉



    Pradeep Singh

  • Thank you, I got it...

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply