The goal here is to extract an attribute value from a SQL Server 2008 table column. The column is an XML data type, of course, named 'ProductName'. Here's the sample data
<locale en-US="My Text" />
And here's my latest attempt at getting to 'My Text'
SELECT ProductName.value('/@locale en-US', 'nvarchar(max)')
AS ProductName FROM MyTable
Thanks and good luck!