SQL Server: Replace invalid XML characters from a VARCHAR(MAX) field

前端 未结 3 750
余生分开走
余生分开走 2020-12-03 12:06

I have a VARCHAR(MAX) field which is being interfaced to an external system in XML format. The following errors were thrown by the interface:

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 12:45

    You need to use nvarchar(max) instead of varchar(max) but otherwise the change is fine.

提交回复
热议问题