A long time I used SQLXML templates on serverside to get data for my application and update some records one by one.
But now I also need to update data of the whole dataset. So I want to use SQLXML UpdateGrams. (Or DataSet DiffGrams).
But My first attempt failed. I have troulble with identity field. No one solution from forums or articles worked for me
. So I tried to implement some sample to post here. It uses Northwind database.
Sample should do 3 steps.
Load data - OK
Make some changes - OK
Save Changes.
But doing this sample I have event more troubles.
please help me. provide some sample or better show me fixes in my one. I tried to comment it and think it is rather simple. you can get it here http://rapidshare.de/files/26676262/SQLXML_Sample1.zip.html or here ftp://demon.selfip.com/SQLXML_Sample1.zip.
It is very urgent, so I'll wait for any replies.
Thanks.
-= Sergey =-
PS.: I'm using SQL Server 2005 to run samples. But productive server will be SQL Server 2000.
Thread is closed ![]()
I've found an error. I've copied sample xsd from the bad book ![]()
There was an error in schema uri
xmlns:sql="urn:schemas-microsoft-com:mapping-schema"
so SQLXML saw no mapping at all!
no everything is ok. Even identity inserts work properly.
-= Sergey =-
No comments:
Post a Comment