Skip to content
Advertisement

Updating JSON value in XML data SQL Server

I have a simple XML which holds JSON as value in it.

I am trying to update the json value in XML data. Name is coming dynamic and have to be created in an variable. I am trying this SQL to update the data with no luck. I think it is not parsing the @SID in it not sure how to make it work.

Advertisement

Answer

You need a small change:

Results:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement