B
Bill
I'm hoping there is an easy solution for this, so I'll lay
it on you guys:
I have a single SQL Server database table called
Customers. Updates to this table are provided by an
external source via XML. These updates can be either
additions to the list of customers, or updates to existing
customers. Updates can be recognized by using an existing
customer id (in other words, the XML document has a
<CustomerID> element with a value that matches the
CustomerID column for one of the rows in the Customer
table. CustomerIDs are unique). I don't need to worry
about deleting customers from the table.
Seems pretty simple right? Is there an easy way to do this
using the DataSet? I've explored the Merge method but I
believe it can only ADD rows from the source dataset to
the target dataset, and doesn't support updates from
another DataSet. From what I understand, XML Web Services
help solve this problem by passing back a DiffGram from
the client that contains only the changed records, and
then Merge is smart enough to make the proper updates. But
is there a way to do that with plain old XML? Can I tell
the Merge method to add rows from the XML with new
CustomerIDs and update rows where the CustomerID already
exists in the table?
Thanks Guys.
it on you guys:
I have a single SQL Server database table called
Customers. Updates to this table are provided by an
external source via XML. These updates can be either
additions to the list of customers, or updates to existing
customers. Updates can be recognized by using an existing
customer id (in other words, the XML document has a
<CustomerID> element with a value that matches the
CustomerID column for one of the rows in the Customer
table. CustomerIDs are unique). I don't need to worry
about deleting customers from the table.
Seems pretty simple right? Is there an easy way to do this
using the DataSet? I've explored the Merge method but I
believe it can only ADD rows from the source dataset to
the target dataset, and doesn't support updates from
another DataSet. From what I understand, XML Web Services
help solve this problem by passing back a DiffGram from
the client that contains only the changed records, and
then Merge is smart enough to make the proper updates. But
is there a way to do that with plain old XML? Can I tell
the Merge method to add rows from the XML with new
CustomerIDs and update rows where the CustomerID already
exists in the table?
Thanks Guys.