Re: make DB name soft in ExecuteSQL task -
08-17-2003
, 10:05 AM
Hi Allan, and thanks for asking the details.
Yes, the ExecSQL DOES relate to a connection, but only to 1 connection.
Because I'm transfering data from a source to a destination, and the SQL I
need to run needs to touch data in BOTH the source AND destination. Because
the ExecSQL task only relates to 1 connection, I need to specify a database
name in the actual SQL I'm executing.
I guess I don't know what X DB is...
A simplified example of what I'm doing would be:
ExecSQL Task Connection: Destination Connection
ExecSQL Task SQL Statement:
insert into table1
select A.field1, B.field2
from SourceDB.dbo.tableA A
join table2 B on A.fieldx = B.fieldy
In this case, it would be the SourceDB that I want to make soft.
- Rick |