T
TheSteph
Using : MS-SQL 2005 / .NET 2.0 / VS2005
I have two server with the same database def but different data.
I would like to import data from Server2.TableA to Server1.TableA. If a row
doesn't exists on Server1.TableA, it should be added; if the data already
exists it should be updated.
I have to write a C# application do this operation on a daily basis on about
50 different tables.
- SqlBulkCopy : doesn't works because it can only do INSERT.
- DataTable.Load() : doesn't works because the destination table should be
entirely loaded into memory and it's too much data with some table.
I'm looking for something like SqlBulkCopy but it should handle the
UDPATE.
Does anybody have a simple solution to this problem ?
Thanks for your help !
Steph.
I have two server with the same database def but different data.
I would like to import data from Server2.TableA to Server1.TableA. If a row
doesn't exists on Server1.TableA, it should be added; if the data already
exists it should be updated.
I have to write a C# application do this operation on a daily basis on about
50 different tables.
- SqlBulkCopy : doesn't works because it can only do INSERT.
- DataTable.Load() : doesn't works because the destination table should be
entirely loaded into memory and it's too much data with some table.
I'm looking for something like SqlBulkCopy but it should handle the
UDPATE.
Does anybody have a simple solution to this problem ?
Thanks for your help !
Steph.