Migrating SQL Server Jobs

  • Is there an easy way I can migrate/move SQL server agent jobs from SQL 7.0 server to 2000 server ?

  • What about other stuff - tables stored procs etc.  Are you not bring this over as well? 

    One method is just to create a script from the job(s) and execute that script in the msdn database on your new server.  This usually works well if you don't have a huge number of jobs to move over.  It can get tedious. 

    Another alternative is to restore the SQL Server 7 msdn database on your SQL Server 2000 server.  Make sure all procs, databases etc referred to in the jobs exist on the SQL Server 2000 box prior to restoring MSDN.  BAck up the 2000 msdn database first.  (I have assumed that no jobs were created on the 2000 box before you do this)

    Francis

  • We only move selective DB over to the new server. There are approx. 50 jobs been identified need to move to the new servers. Backup/restore msdb may not work, we left a lot of DB behind.

  • but if you do have A Lot of jobs it is still no biggie. Go to EM -> Management -> SQL Sever Agent -> Jobs, Right click on the JOBS item select All tasks -> Generate SQL Script and your done


    * Noel

  • In EM right click on the Jobs tab and select All Tasks, Generate SQL Script.  Generate the script and execute in in the msdn database for your new server. 

    Francis

  • I didn't refresh my screen so I didnt see your post noeld. 

    Francis

  • Hey no problem, it happens to me all the time


    * Noel

  • I do try to use EM to generate script, but somehow a lot of job doesn't seems parse the statement correctly. It seems it always mispalce the '. Do any of you have same problem. A lot of our jobs are involved with relative complex SQL statement.

  • I've had this problem before as well.  Try putting the following before the generated job scripts to see if this fixes things:

     

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_NULLS ON

    GO

    Francis

  • Doesn't seems to.

  • There is a DTS task in SQL2000 to transfer jobs.  The source can be a SQL 7 server and you can select the specific jobs you want to transfer.

Viewing 11 posts - 1 through 10 (of 10 total)

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