- I have T_ABC_MASTER table which has column abcData and its image type in MS Server.
- I want to update the following text to abcData.
- Please help with any SQL script, not with the program, just need a query to do it.
TEXT
<note>
<to1>abc`xyz</to1>
<from2>local</from2>
<heading>dadasd</heading>
<body>Don't forget me this weekend!</body>
</note>
IMAGE,TEXTandNTEXTare deprecated for centuries and should not be used anymore... Convert your data toVARBINARY(MAX),VARCHAR(MAX)andNVARCHAR(MAX). In your specific case you should use the native XML type...update t_abc_master set abcData = '<xml></xml>' where id = @id'.