INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'

前端 未结 4 993
遥遥无期
遥遥无期 2021-02-11 18:24

We are getting the below message sometimes while executing the stored procedure, after that without any change deleting and re-executing the stored procedure it is working fine.

4条回答
  •  盖世英雄少女心
    2021-02-11 19:31

    If anyone hits this error after having deployed via a Visual Studio database project then it's worth checking the properties of your stored procedure file. If this is set to Project Default then go to the properties of your database project > Project Settings and click the Database Setting button.

    You can turn these two values (and others) to be on by default as shown in the screenshot below.

    This will only fix the issue if you have changes to the procedure how ever; a schema compare and subsequent update will not change the QUOTED_IDENTIFIER in the stored procedure unless there are changes to the body of the procedure. It will prevent the problem from reoccurring on a subsequent schema updated though.

提交回复
热议问题