Migrating large number of DTS packages

mpbel
mpbel used Ask the Experts™
on
Hello,

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.

Thx,

Yves
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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.

Author

Commented:
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!

Yves

Commented:
Yves,
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.
Top Expert 2012
Commented:
If they truly are DTS packages (DTSX is SSIS not DTS) than you can programatically open using the DTS object model and change any hard coded connection strings.
Top Expert 2012

Commented:
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.

Thanks,
Anthony

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial