Declare @xml = '<root><row ClassID=''99c24704-bfdb-4350-a35b-102cf5699edb'' UserID=''adsadadsada'' /><row ClassID=''99c24704-bfdb-4350-a35b-102cf5699edb'' UserID=''adsadadsada'' /></root>'
i want to perform the following:-
select * from @xml
select classid from @xml
select * from xml where classid=[somevalue]
You can’t use
*against XML you need to list the columns you want.