Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 DTS packages backup method

Author  Topic 

Marvin
Starting Member

2 Posts

Posted - 2003-05-07 : 03:49:52
Hi,

I've got a server with several DTS packages on. I'd like to know if there is a method that could allow be to backup all DTS packages associated to a server directly to a directory.
The only way I know now (i'm a newbie in MS Sql Server) to save a DTS package is "open it - save it as".
Is there a way to do that via a script or something like that ?

Same questions for jobs.

TIA

Andraax
Aged Yak Warrior

790 Posts

Posted - 2003-05-07 : 05:35:32
Hi!

You can:
1) Backup the msdb database, which contains the packages on the server.

2) Use the dts object library. The method DTS.package.SaveToStorageFile should help you do what you want.



Go to Top of Page

franco
Constraint Violating Yak Guru

255 Posts

Posted - 2003-05-07 : 05:54:33
Use the DTS transfer wizard. Set msdb as the source and destination databases and "select * from sysdtspackages" on the source.
HTH

Franco
Go to Top of Page

Andraax
Aged Yak Warrior

790 Posts

Posted - 2003-05-07 : 05:59:53
The method Franco proposes does not work on Meta Data Services packages, just to clarify.

Go to Top of Page

ralphs
Starting Member

8 Posts

Posted - 2003-05-07 : 06:01:17
Hi,

All DTS packages are saved in the msdb database. So if you backup msdb the dts packages will also be saved. But I you will also get everything else that is saved in msdb.

I guess that you want to only save the dts package so you can restore them one at a time. there is VB prog. read more here: http://www.databasejournal.com/features/mssql/article.php/1462601

If you like to do your own script, tip is to look at the systemtables in msdb and extract the information from the correct table/s. start by looking at msdb.dbo.sysdtspackages. Just in case test on a lab server :-) that you don't mind messing up ;-)

Good Luck
/Ralph
Go to Top of Page

franco
Constraint Violating Yak Guru

255 Posts

Posted - 2003-05-07 : 06:03:33
You can also refer to this:
http://www.sqldts.com/default.aspx?6,105,204,0,1

Franco
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-05-07 : 12:27:30
All system databases should be part of a normal backup schedule. MSDB is a system database and contains DTS packages, jobs, and other stuff (see BOL for the info).

Tara
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2003-05-07 : 14:37:35
Another option is to load the dts packages from files then you can just backup the directory - or use the sourcesafe to keep the backups.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Shastryv
Posting Yak Master

145 Posts

Posted - 2003-05-07 : 16:21:12
You can also save the DTS Package directly on to the destination server by specifying the server name in the design mode



Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-05-07 : 16:36:44
Yes there are various ways of doing this, but I recommend backing up the MSDB database since you should already be doing it anyway to backup your jobs and other MSDB objects. To copy your DTS packages to another server, you should use the other methods mentioned.

Tara
Go to Top of Page

Marvin
Starting Member

2 Posts

Posted - 2003-05-09 : 02:45:57
Hi,

I think I'm gonna use the "SaveToStorageFile" method, because I d'ont only want to backup those DTS packages, but I also need to be able to transfer them to my ISP in a file format.

Go to Top of Page
   

- Advertisement -