July 1, 2010 at 5:45 am
Hi All,
I am new to XML
how can we store a sql querry inside an xml node
July 1, 2010 at 6:09 am
I’m guessing that you meant that you want to get the query’s result as an XML document and not the query itself. If I’m correct, then you need to add at the end of the query the FOR XML clause. You can read more about it in this link http://msdn.microsoft.com/en-us/library/ms178107.aspx%5B/url%5D
Adi
--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
July 1, 2010 at 6:30 am
not result data..
how can i give querry itself inside an xml node
July 1, 2010 at 7:23 am
You need to give more information and explain what you need to do. There are many ways to write a query in an XML document (for example open up notepad and writing the XML with the query).
Adi
--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply