sql - What is the simplest way to convert table Rows into XML and viceversa -
i need develop sql server procedure convert table rows xml , transfer stored procedure(different server) through link server. on server have take xml data input , again convert table rows. simplest , time efficient way this.
it not possible use xml datatype parameter in stored procedure on linked server. have use nvarchar(max)
, convert xml in stored procedure.
to create xml should use for xml (sql server). raw
, auto
easy , if need more control use path
. stay away explicit
.
to shred xml on receiving side should use nodes() method (xml data type) , value() method (xml data type).
Comments
Post a Comment