SET QUOTED IDENTIFIER should be ON when inserting a record

前端 未结 4 1615
一整个雨季
一整个雨季 2020-12-06 12:00

I am stuck in a rather strange problem with SQL Server 2005, which throws

\"SET QUOTED IDENTIFIER should be on when inserting record\"

4条回答
  •  盖世英雄少女心
    2020-12-06 12:29

    I was just reading this article by Erland Sommarskog, The Curse and Blessings of Dynamic SQL, and it includes the following paragraph in regards to the SET QUOTED IDENTIFIER setting:

    The default for this setting depends on context, but the preferred setting is ON, and it must be ON in order to use XQuery, indexed views and indexes on computed columns.

    Does your stored procedure make use of XQuery, indexed views or indexes on computed columns at all?

提交回复
热议问题