July 21, 2010 at 6:06 am
Hello All,
I have a table with the following structure with full of data:
CREATE TABLE errorLog(
[ID] [int] IDENTITY(1,1) NOT NULL,
[params] [varchar](max) NULL,
[vals] [varchar](max) NULL
)
I suppose, SQL Server 2008 supports XML widely and I am wondering whether i can convert the above table data to xml with the table structure easily and automatically.
So, the XML representation would look something like this:
<errorLog>
<ID>1</ID>
<ID>params</ID>
<ID>vals</ID>
</errorLog>
Any help or suggestions are greatly appreciated.
July 21, 2010 at 7:10 am
Thank you for your quick response. That should do it.:-)
October 26, 2012 at 12:11 am
please send how to convert sql table convert to xml files??/
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply