As I understand MS SQL Server Management Studio doesn't allow directly editing/replacing entries in XML columns via GUI (copy/paste doesn't work etc.).
What is the easiest option to replace a single entry in an XML column? Do I have to use something different from UPDATE/REPLACE for an XML column value?
Best Answer
If you just need to replace the whole piece of XML in once, then you can do a normal UPDATE, eg something like this:
If you need to edit individual attributes or elements then you can use the .modify method of the XML data-type in SQL Server to update single values. Here's a simple example to get you started:
If you need more help, please post a small sample of your XML and your expected results.