I have a timestamp column in a table for checking for concurrent updates.
I get the data to a typed dataset. In order to update i convert the dataset to xml (using dataset.getxml()) and pass it to stored proc.
In the stored proc i am storing the data from xml string into a temp table using openxml. The values of timestamp column from xml are stored in Varbinary(8) column in temp table.
When i compare the rowversion column in the temp table and main table, they are not matching. For some reason the values are different when i pass it to dataset and back to sql server.
How can resolve this issue? Please help.
Thanks in advance.
Venu.