Bulk update XML records in SQL server

MariaMoon

New Member
I'm trying to update loads of records which are stored as XML in my SQL Server 2008 database similar to this.\[code\]<products> <product> <name>Nike trainer 1</name> <description>Trainer 1</description> <price>10.99</price> </product> <product> <name>Nike trainer 2</name> <description>Trainer 2</description> <price>15.99</price> </product> <product> <name>Nike trainer 3</name> <description>Trainer 3</description> <price>16.99</price> </product></products>\[/code\]I want to bulk update all my prices by 1.50 and as there are approx 900 products this would be very time consuming going through every product, so was wondering if there is a quick way of doing this via SQL statements?
 
Back
Top