![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to make DTS Packages that can easily target different destination SQL Server servers and databases? I'd like to have the package modified as little as possible as I proceed through the development lifecycle. Starting with my development environment, then to a QA database server with a different DB name (same schema), then finally to the production deployment. Are global variables the way to do this? If so, then I'm afraid that I don't understand how to use them on the connection object and in the transforms. - Rick |
#3
| |||
| |||
|
|
Thanks, JFB & Darren. Between the Data Link connections and the Dynamic Properties task, I've just about got this licked. The one issue I have still outstanding is when uding the Dynamic Properties task to set properties on the dts data pump task, the DestinationObjectName is fully qualified (db.owner.table). So, do I have to have a seperate .INI file for each destination table? All the destination table names will be the same, just the DB name would change. I'm afraid that maintaining dozens of .ini files would be a lot of work and possibly error prone. - Rick "Darren Green" <darren.green (AT) reply-to-newsgroup-only (DOT) uk.com> wrote in message news:Kyu2FhK$SqMicrosoftEwHm (AT) sqldts (DOT) com... In article <jumdnUUWJIN-66-iU-KYgw (AT) comcast (DOT) com>, RickT thumper (AT) kqrsrocksNOSPAM (DOT) com> writes Is it possible to make DTS Packages that can easily target different destination SQL Server servers and databases? I'd like to have the package modified as little as possible as I proceed through the development lifecycle. Starting with my development environment, then to a QA database server with a different DB name (same schema), then finally to the production deployment. Are global variables the way to do this? If so, then I'm afraid that I don't understand how to use them on the connection object and in the transforms. - Rick Have a look at the Dynamic Properties Task. This can read global variables and assign the value to virtually any task, step or connection property in that package. Look up "Dynamic Properties task" in SQL Server Books Online for some more information. Using parameters in this way for any property that may change is good practice in my opinion. For connections you can also abstract the server name by using an alias created via the Client Network Utility. This is for the server name only unfortunately. You could also change your connections to "Microsoft Data Link" which uses UDL files. These are really just text files with a connection string in. If you have a common file path and use functional names for the UDLs you should never need to change the UDL file property in you connection during migration, as each server (environment) has it's own copy of the file. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |