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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -