Hi Newbie27
Your xml data is sotred in text column, so we cannot directly use the xml methods. so i conver the text datatype to xml and store the result in table variable and then i update the date in Order table
Try this code
DECLARE @tmpOrder TABLE(xmld XML, t_orderid NUMERIC(10))
INSERT INTO @tmpOrder
SELECT CONVERT(XML,xml_data),OrderId from Order
UPDATE Order
SET TimeStamp = xmld.value('(/Start/PurchaseOrder/@RequestDate)[1]', 'DATETIME')
FROM @tmpOrder
WHERE orderid = t_orderid