Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS: 2 server data transfer using dynamic sql

$
0
0

We have two (unlinked) servers: Src and Dst and want to run this statement in an SSIS package

INSERT INTO  <Dst>.<DB2>.<dbo>.[Table2]

           SELECT * FROM <Src>.<DB1>.<dbo>.]Table1]

where  DB1, DB2, Table1, Table2 come from Expressions (we need to run this statement in a loop). Src and Dst are fixed. 

We can't run this in an Execute SQL task as it allows only a single server\DB connection and our statement involves 2 servers and DBs.  Does SSIS offer anything that can handle this type of query?

TIA,

edm2





Viewing all articles
Browse latest Browse all 24688

Trending Articles