>SqlXmlCommand objSXC = new SqlXmlCommand("Driver={SQL >Server};Server=MyServer;Database=MyDatabase;Uid=MyUser; Pwd=MyPassword;"); > >objSXC.CommandType = SqlXmlCommandType.UpdateGram; > >objSXC.CommandText = MyXMLstring; > >objSXC.ExecuteNonQuery (); >>
>> >><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?> >><root xmlns:updg="urn:schemas-microsoft-com:xml-updategram"> >> <updg:sync> >> <updg:before> >> <testtable> >> <descr>BEFORE CHANGE</descr> >> <identity_column>5</identity_column> >> </testtable> >> </updg:before> >> <updg:after> >> <testtable> >> <descr>AFTER CHANGE</descr> >> <identity_column>5</identity_column> >> </testtable> >> </updg:after> >> </updg:sync> >></root> >> >>