How can I use the .query() t-sql syntax to select a specific node, but only get the inner text, not the inner text, enclosed in node tags?
As in the case when I do this:
SELECT TOP 1 [XMLContent].query('/Event/Username'), * from Events
I get:
<Username>BURGUNDY</Username>
But I want only BURGUNDY . Obviously, I could make some substrings to get it, but I was hoping there was a quick and easy way to do this.
source share