Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

xml to column sql

SELECT TheKey, 
    TheData.value('(/Group1/Title/Name)[1]', 'varchar(100)') AS Name,
    TheData.value('(/Group1/Title/Phone)[1]', 'varchar(100)') AS Phone,
    TheData.value('(/Group1/Title/Email)[1]', 'varchar(250)') AS Email,
    TheData.value('(/Group1/Title/State)[1]', 'varchar(100)') AS [State]
FROM MyTable
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #xml #column #sql
ADD COMMENT
Topic
Name
9+4 =