I have a temporary table with column XML( XMLColumn) and column VARCHAR( ABCColumn).
I am trying to replace the value of a specific XML node inside with a XMLColumnvalue that is on ABCColumnthe same line. I need to do this for every row in the temp table. Is it possible to do without a cursor that preserves the replacement value for each sample?
I tried to update in temp table using
XmlColumn.modify('replace value of ... with ...')
but I do not have a variable in this case. I need to get the value XYZColumnand use it as a replacement value. In every example I saw, a variable or hard-coded value is used, not a column value of the same row.
Also, I am using SQL Server 2005. Does anyone have any ideas?
Jaden source
share