You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selectt2.x.value('(a/@value)[1]', 'varchar(20)') as a,
t2.x.value('(b/@value)[1]', 'int') as b
from
(select cast('<table><row><a value="X">Nope</a><b value="1">Nope</b></row><row><a value="Y">Nope</a><b value="2">Nope</b></row></table>'as xml)) t1(x)
cross apply t1.x.nodes('/table/row') t2 (x);
lukaseder
changed the title
Emulate XML_TABLE in SQL Server with OPENXML
Emulate XMLTABLE in SQL Server with OPENXML
Apr 22, 2020
lukaseder
changed the title
Emulate XMLTABLE in SQL Server with OPENXML
Emulate XMLTABLE in SQL Server with NODES() and VALUE()
Apr 22, 2020
SQL Server supports
OPENXML
, which seems to differ only in syntax from standard SQLXML_TABLE
:https://docs.microsoft.com/en-us/sql/t-sql/functions/openxml-transact-sql?view=sql-server-ver15
The text was updated successfully, but these errors were encountered: