Solved

Scripting SQL DTS Packages and all SQL Jobs?

Posted on 2006-11-24
2
185 Views
Last Modified: 2013-11-30
Hi all.  I am trying to do the following.  A previous company created about 10 DTS packages and there is about 20 SQL jobs.  I need to first check what all of them are doing and then I need to script everything needed and move it to another server with 2 databases.  I am thinking I will just do a full backup on the DB's and then restore and then I need to setup all the DTS packages and SQL Jobs.  Is there a scripting way to do this and also is there a way I can see everything that is being run without having to click and look at steps for each job etc?  Thanks all
0
Comment
Question by:sbornstein2
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 18009409
the DTS and jobs are all stored in the msdb, so if you backup and restore that database, you have them all...
0
 
LVL 13

Expert Comment

by:MikeWalsh
ID: 18010131
MSDB will also store all job related information about the server.

One other option is to save your DTS packages to a structured file. You can then save the .dts file and reimport those by right clicking on local package and selecting open, then choose structured file and open the .DTS file. Some companies do this to keep versioning and source control and actually check their .dts files into source control. This is a tad bit cleaner than just restoring another servers MSDB database to a new server.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question