Hi All,
Using SSIS Package, I want to insert into a table, where my source and target tables have dynamic col names. Also these source and target are from two different servers. Explained the scenario below.
For ex: I have TblA from ServerA & TblB from ServerB. SchemaName: Y2017.
Sample TblA columns: Event,NUM,APAmt,CBAmt17,GrosAmt17
Sample TblB columns: Event,Num,APAmt,CBAmt17,GrosAmt17.
As mentioned above, last two character of schema name would be placed in some of the columns in tbla and tblb.
Since the column names are dynamic, I will create a dynamic sql like, insert into tblb ... select ... from tbla.
Since my two tables are from two different servers. How can I achieve this select & inserting in SSIS.
Kindly let me know.