December 10, 2014 at 2:39 am
I have a column in VARBINARY(MAX) and I want its data to convert it to XML
Can someone please provide me a simple query.I tried looking on other websites but no luck .they are quite confusing..
December 10, 2014 at 2:45 am
Assuming that the contents are already valid XML, then
ALTER TABLE <table name> ALTER COLUMN <column name> XML
should do it.
If the contents aren't valid XML, you'll have to fix that first.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 10, 2014 at 2:49 am
Gila,
I am looking for a query to convert data in VARBINARY(MAX) to be displayed in XML
can you help
December 10, 2014 at 3:58 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply