I have a column "XML" as type xml in my database. And I want to replace some xml parameters.
and I did this:
and it does not work, when I change the type of my column to text, or nvarchar it works. So I think it's all about the casting/ type of column.
Do you have any tips to avoid this, a workaround, ....?
I added the xml example in attachment.
and I did this:
Code:
update core.Desktops set [xml] = replace(CAST([XML] as nvarchar(max)), '<property name="Name">colDepartments</property>
', '<property name="ColumnEditName">repDepartments</property>
')
Do you have any tips to avoid this, a workaround, ....?
I added the xml example in attachment.
Comment