dbTalk Databases Forums  

DTS database flexibility

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS database flexibility in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Morrison
 
Posts: n/a

Default DTS database flexibility - 11-06-2003 , 02:50 PM






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.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS database flexibility - 11-06-2003 , 03:43 PM






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

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





Reply With Quote
  #3  
Old   
David Morrison
 
Posts: n/a

Default Re: DTS database flexibility - 11-06-2003 , 03:48 PM



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

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







Reply With Quote
  #4  
Old   
RLoski
 
Posts: n/a

Default DTS database flexibility - 11-07-2003 , 06:03 AM



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

Reply With Quote
  #5  
Old   
David Morrison
 
Posts: n/a

Default Re: DTS database flexibility - 11-07-2003 , 07:54 AM



That sounds good. I'll look into it. Thanks!

"RLoski" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
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



Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS database flexibility - 11-08-2003 , 11:57 PM



OK. The concept is the same it just doesn't have Your exact circumstances.
If you are using SQL Server 2000 you have an array of options but the
Dynamic Properties task is as good a task as any. You assign a value from an
external source to the DataSource AND/OR Catalog properties of your SQL
Server connection. That external source ranges from an INI file to a
database query.

Have a look.



--

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

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









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.