I am trying to run the script to update an XML column:
UPDATE DataImpTable
SET serviceData.modify('replace value of (/SMObjInfo/CentralData/SMData/CentralSDItem/ControlData/text())[1] with "9876"')
WHERE identifier=5
<SMObjInfo xmlns="DataService/1.0.0.0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CentralData>
<SMData>
<CentralSDItem>
<ControlData>1234</ControlData>
</CentralSDItem>
</SMData>
</CentralData>
</SMObjInfo>
Change value of ControlData
to 9876 but the value doesn't seem to change in the XML for the /SMObjInfo/CentralData/SMData/CentralSDItem/ControlData
value.
Is it anything to do with typed and untyped XML?