![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS package that copies data from tables in one database to the same tables in another database, deleting records in the destination tables first. How can I easily change the source and destination database references throughout the DTS package so I can reuse the DTS package elsewhere? All the tables will be the same. |
#3
| |||
| |||
|
|
Have a look at this Connections (http://www.sqldts.com/default.aspx?101) -- -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "David Morrison" <me (AT) nospam (DOT) com> wrote in message news:evmF$eKpDHA.2588 (AT) tk2msftngp13 (DOT) phx.gbl... I have a DTS package that copies data from tables in one database to the same tables in another database, deleting records in the destination tables first. How can I easily change the source and destination database references throughout the DTS package so I can reuse the DTS package elsewhere? All the tables will be the same. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
You add global variables to the project for the server name and the database name. Then you add a Dynamic Properties task (look for Dynamic Properties Task in the bol index). You find where the server name is used and set the property from the global variable. Russ Loski, MCSD www.LoskiDataMovers.com |
#6
| |||
| |||
|
|
I don't really see anything there that addresses this question. I'm working with SQL Server databases, not Access. There are a bunch of references to code but I'm not a programmer. I'm looking for a place in SQL Server Enterprise Manager where I can alter the DTS package so that it will look to different databases. "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:e8x4e7KpDHA.488 (AT) tk2msftngp13 (DOT) phx.gbl... Have a look at this Connections (http://www.sqldts.com/default.aspx?101) -- -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "David Morrison" <me (AT) nospam (DOT) com> wrote in message news:evmF$eKpDHA.2588 (AT) tk2msftngp13 (DOT) phx.gbl... I have a DTS package that copies data from tables in one database to the same tables in another database, deleting records in the destination tables first. How can I easily change the source and destination database references throughout the DTS package so I can reuse the DTS package elsewhere? All the tables will be the same. |
![]() |
| Thread Tools | |
| Display Modes | |
| |