How to query xml column in TSQL for specific text
问题 I am trying to query the word Simple out the following XML Document. The column is xml data type, the column name is InstanceSecurity . <InstanceSecurity> <Folder> <Authorization Mode="Simple"> <Deny PrivilegeCode="Create" /> <Deny PrivilegeCode="Delete" /> <Deny PrivilegeCode="Edit" /> <Deny PrivilegeCode="Read" /> <Deny PrivilegeCode="View" /> <Deny PrivilegeCode="Print" /> <Allow PrivilegeCode="All" EntityType="Personnel" EntityVal="5bc2" /> <Allow PrivilegeCode="All" EntityType="Personnel