Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using 2 different DataSources

Status
Not open for further replies.

jt8941

Programmer
Dec 9, 2003
15
0
0
US
I need to export data from connection 1 to connection 2, however the where clause needs to be constructed from data in a table in connection 2?

How is the best way to do this, text file?
 
You can create a linked server on the source server pointing to the destination server and then perform a join with a where clause.

 
Can you use the connection 2 (as step 1) to define a global variable with this WHERE clause and then use an activeX script (step 2) to set the data pump Custom sql (step 3)?


The early bird gets the worm, but the second mouse gets the cheese.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top