Hi All
I need to update a table which is in one server with values of another table which is in different server through SSIS package
Scenario is as follows:
I am getting a result set after executing a Stored procedure. i am taking this result set into a physical table ABC. This table is in A server(for assumption).
With this table ABC values i need to update another table XYZ which is in server B.
So what i have done is i have taken a Data flow task then a source and i am taking ABC table values into that source then i am using OLEDB Command. In that command i am writing a sql query as
-------------------------------------------------
UPDATE XYZ
SET 1=?,
2=?,
3=?,
4=?
and some more columns like this
------------------------------------------------
By this statement i am thinking that whole XYZ table will update with only one row from ABC table (Correct me if i am wrong). that means all the rows in XYZ table will replace with a single row values from ABC table .. is that so
for example XYZ is having 10 rows and after the update the 10 rows will have same values like
ab c
ab c
ab c
that means previous original values will vanish and all values replace like above
OR
Does normal update will happen with the above UPDATE statement.
What my requirement is i need to update thae XYZ table with Values from ABC table.
if Values are one and same in both the tables it need not update but any difference is there that value need to be updated.
SO HOW CAN I DO THIS WITH SSIS PACKAGE.
Immediate answers will bw appreciated.
Thanks