dbTalk Databases Forums  

Connection

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


Discuss Connection in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Günter Prossliner
 
Posts: n/a

Default Connection - 10-10-2003 , 06:55 AM






I add an SQL-Server Connection (database: db1), and an ODBC - Connection
(using a system-dsn) to an dts package. Now I add an Data-Transform Task
witch uses the ODBC-Connection as the target-connection and the ODBC
Connection as the destination connection. The desination table is set to
"table1".
All works fine, but:
If I change the Database of the SQL-Server Connection to db2 (witch has an
identical structure), the Data-Transform Task uses "db1.table1" as the
destination table, instead using the table1 of the db2!
This is a problem, becaurse there are 30 Data Transformation Tasks depending
on the SQL Server Connection. If I want to target db2, I must change the
table in each Data Transformation Task!

any ideas?

thanks, GP



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

Default Re: Connection - 10-10-2003 , 08:03 AM






Use disconnected edit (DestinationObjectName) to make it name dependent
only. This, you are correct is annoying, but can using the method given be
overcome.

--
--

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

"Günter Prossliner" <gpointprossliner (AT) removegmx (DOT) at> wrote

Quote:
I add an SQL-Server Connection (database: db1), and an ODBC - Connection
(using a system-dsn) to an dts package. Now I add an Data-Transform Task
witch uses the ODBC-Connection as the target-connection and the ODBC
Connection as the destination connection. The desination table is set to
"table1".
All works fine, but:
If I change the Database of the SQL-Server Connection to db2 (witch has an
identical structure), the Data-Transform Task uses "db1.table1" as the
destination table, instead using the table1 of the db2!
This is a problem, becaurse there are 30 Data Transformation Tasks
depending
on the SQL Server Connection. If I want to target db2, I must change the
table in each Data Transformation Task!

any ideas?

thanks, GP





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.