I have the following simple XML fragment shown below. What would the T-SQL look like if I wanted to just extract the ‘EntityFriendlyName’ attribute?
<SimpleRuleValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<EntityId>0</EntityId>
<EntityFriendlyName>ALine</EntityFriendlyName>
</SimpleRuleValue>
It would be something like this:
Edit:
A little more information.