Trouble extracting xml data when it has different namespaces?

Ignore namespaces!
"select @xmlDoc.query('data(/*:authors/*:child/*:id)') as UserID"
from blog post http://maxbarrass.blogspot.se/2008/02/sql-2005-xml-xquery-ignore-namespaces.html

Comments

Popular posts from this blog

SSIS: Set parent package variable from child package

How to decrypt stored password from SSMS registered servers

Insert bulk statement does not support recompile (SQL 2017)