![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I created a DTS package to do some ETL task between 2 SQL servers. I want to move this package to do a similar ETL task between another set of databases (the names of the databases are different however the table names are the same .. test and production databases) on another server. I found that the server names and database names can be dynamically set using a dynamic properties task in dts. However all the insert/update/lookup queries as well as the source and destination object names inside the dts package have the names of the test databases hard coded in them. isnt there a way t ohave a one place change so that i can easily move the dts package from the test database to production database. please advice. regards, Atul. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
let me see if i got it right .. I use the SQL server 2000 enterprise manager console to edit my DTS package using the "Disconnected Edit" feature so i should do the following 1) in all my "data driven query tasks" and "data pump tasks" i should get rid of the database name from all the insert / update /lookup querries and leave it in a <owner>.<tablename> format .. 2) I did not understand the SourceObjectName and DestinationObjectNames assignment thing .. are <owner> and <tables> , variables that can be assigned from an INI file etc... I have close to 50 tasks in the same DTS package. i tried setting the SourceObjectName and DestinationObjectNames in an INI file for all the tasks but dts did not support the INI file size and that solution did not work. how can I replace the hardcoded names in SourceObjectName and DestinationObjectNames with variables which can be set dynamically? regards, Atul. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
actually the only thing thats changing in my case is hte name of the database .. however each query in the dts data driven query task and the data pump task has the database name in it as databaseName>.<ownerName>.<tableName If i simply remove the database name form each of these tasks will the dts package still work fine ? regards, Atul. |
![]() |
| Thread Tools | |
| Display Modes | |
| |