Coping Jobs

  • Hi,

    I have 7 servers all running sql 2000 on win2000.  I have to add 5 new jobs to all the servers.  Is there a way to script the jobs or is there a control I could use to create the jobs.

     

    Thanks

    Mark 

  • You can script all jobs in Enterprise Manager.

    Management | SQL Server Agent | Jobs.

    Right Click.

    All Tasks | Generate SQL Script...

     

    K. Brian Kelley
    @kbriankelley

  • Thanks,  One other question when I try to execute the script in TSQL it tries to run the steps.   How do I install the jobs on another server?

  • You can run the script through Query Analyzer. You may have to make a few small changes here and there to reflect differences between the server, but it's a basic T-SQL script.

     

    K. Brian Kelley
    @kbriankelley

Viewing 4 posts - 1 through 3 (of 3 total)

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