Avatar of mpbel
 asked on

Migrating large number of DTS packages


Due to a SQL server migration project (2005 => 2005), we will have to adapt more then 400 DTS packages, since we will have to use different paths for source and destination in the new environment.
I have opened some DTSX files in notepad, and it seems to be clear text in XML format...
I'm not a SQL server specialist, but i have a lot of scripting experience.

So my question is:
Could I use a vbscript to :
1. open all DTSX file (one by one),
2. replace old source and destination paths by the new source & dest paths
3. write to new DTSX files
4. import the new (altered) DTSX files in the new SQL server

Does somebody has experience with this? Which strings/tags will I have to replace?
I searched for half an hour in Google and could not find someone who already did this.


Microsoft SQL Server

Avatar of undefined
Last Comment
Anthony Perkins

8/22/2022 - Mon

Yes, you should be able to do exactly what you're proposing, as this is one way people handle deployments. However:

1. I assume you really mean SSIS, not DTS!
2. SSIS packages also have inconvenient things like connections: these may well also have environment-specific attributes like paths. If you've religiously used Package Configurations in all your packages then you'll have these pieces of information in the XML and yes, you should be able to edit the strings.

No I realy mean DTS, not SSIS.
We have planned to change from DTS to SSIS at a later time in the migration.
At this moment, we just would like to have the old DTS packages working in the new environment.
If replacing the connection strings with a script will work, it will save us from many weeks of stupid work.

Thx for your help!


So far as I know, DTSX files are SSIS files!  You're running your DTS within SSIS, so try it out! Do one or two manually to see exactly what's needed - I don't think there's any MS documentation on the subject ! You might get away with a simple search-and-replace in a text editor like UltraEdit.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
Anthony Perkins

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Anthony Perkins

Yves Porters,

Please re-read the EE Guidelines regarding grading standards at:
What grade should I award?

If you still feel my answer deserved a "C" grade than please post the reason.  Failing that I will ask an EE Moderator to step in and review.