Home Forums SQL Server 2008 T-SQL (SS2K8) XQuery get value from node root without child nodes RE: XQuery get value from node root without child nodes

  • Change

    xmltext.query('/PARAMS/FILTERS/CRM')

    to

    xmltext.query('/PARAMS/FILTERS/CRM/text()')

    ____________________________________________________

    Deja View - The strange feeling that somewhere, sometime you've optimised this query before

    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537