Hi,
You should use XQuery as follows:
SELECT ID, ReturnMessage.VALUE('(/ReturnMessage/MessageStatus/@time)[1]', 'date')
FROM dbo.youTable
This works only if the ReturnMessage's type is XML.
You can find more details on value() function
here.
Kind regards,
My blog
Whether you’re a construction worker, a forum moderator, or just someone that likes helping people. I think these
guidelines can be helpful in keeping you helpful when being helpful.