Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a DTS package to another server 1

Status
Not open for further replies.

bessebo

IS-IT--Management
Jan 19, 2001
766
US
I have a server which contains a number of DTS local packages that I want to move to another server. I don't want to restore the whole msdb database to the new server because I already have a number of SQLServer jobs created. Is there a way to move DTS packages from one server to another without having to restore the MSDB database?

Thanks in advance,
Bessebo
 
Check the following article from SQL Mag online.


Or these recommendations from a SQL FAQ.

Q. How can I transfer DTS packages from one SQL 7 server to another?

A. Three choices :-

1. Use the DTS transfer wizard. Set msdb as the source and destination databases and "select * from sysdtspackages" on the source.

2. Save each DTS package as a file. Copy the .dts files created to the target machine. From EM, right click Data Transformation Packages and choose all tasks Open Package for each package.

3. Open them in the package designer - choose save as, and save them to the other server.

Option 1 is the quickest for lots of packages Terry
 
If both servers can be seen from a single machine, you can crank up Enterprise Manager, open the DTS package for design, and choose Save As from the Package menu. The Save As dialog will allow you to save to a different server. Robert Bradley
teaser.jpg

 
Terry,
I tried to use the DTS Export wizard, I chose the msdb database for source and destination but the system tables will not show up. Do I have to use the query option and enter 'select * from sysdtspackages'? Will this do the trick. There are about 30 packages and I'd rather use option 1 than either of the other options.

Thanks,
Bessebo
 
I had not tried to use DTS to copy DTS packages in mass previously. I found the information and shared it here. Since then, I've tried and cannot get it to work because the tables are not visible. Some workarounds have been proposed in various forums, none of which worked for me.

Therefore, I decided to use a tried and true, simplified method. I linked the second server to the first and simply inserted the records into sysdtspackages on the second server.

This is my query:

Insert server2.msdb.dbo.sysdtspackages
Select * From msdb.dbo.sysdtspackages


Worked great! Hope this is more helpful. Terry
 
Thanks Terry,
After I linked my servers I had to use the sp_addlinkedsrvlogin stored procedure to set the sa password when it logs into the remote server since I kept getting a sa login failed error. After that I ran your query and it worked like a charm.

Thanks!
Bessebo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top