Solved

Scripting SQL DTS Packages and all SQL Jobs?

Posted on 2006-11-24
2
183 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now