I need to get the value of AccountName in my table
<rows>
<Row xmlns="http://adcenter.microsoft.com/advertiser/reporting/v5/XMLSchema">
<AccountName value="MA_Yellowpages - AdStore" />
</Row>
</rows>
I am using below thing -
;WITH XMLNAMESPACES('http://adcenter.microsoft.com/advertiser/reporting/v5/XMLSchema' AS ns)
select
temp.query('AccountName[1]').value('@value','varchar(1000)') AS AC
from yp.dbo.Audit_ApiCallRawXml CROSS APPLY
RawXML.nodes('/rows/ns:Row') lg(temp)