SQL Server does not handle comparison of NText, Text, Xml, or Image data types

后端 未结 1 720
花落未央
花落未央 2021-01-18 04:02

This error occurs when data binding a repeater: SQL Server does not handle comparison of NText, Text, Xml, or Image data types

protected void Page_Load(objec         


        
相关标签:
1条回答
  • 2021-01-18 04:39

    NTEXT, TEXT and IMAGE types are deprecated and must be replaced with the NVARCHAR(MAX), VARCHAR(MAX) and VARBINARY(MAX) types. The new types support string operators, including equality comparison.

    XML can never be compared as a string. XML snippets can be written in thousands of ways and result semantically in the same XML. Just think at namespaces and how they can be declared however one likes.

    0 讨论(0)
提交回复
热议问题