Paresh's Blog
Showing posts with label
Read XMLColumn value and Get it in Table format
.
Show all posts
Showing posts with label
Read XMLColumn value and Get it in Table format
.
Show all posts
Friday, December 19, 2008
Read XMLColumn value and Get it in Table format
for Example the XML value is Like :
bbb
vvv
aaa
SELECT r1.value ('./@id', 'varchar(100)') as Attribute, '' as Value
FROM [Table Name] CROSS APPLY [ColumnName].nodes ('Root/D') AS x (r1)
Older Posts
Home
Subscribe to:
Posts (Atom)