Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Problem: INSERT/UPDATE/DELETE failed because the following SET options have incorrect settings: ‘QUOTED_IDENTIFIER’

$
0
0

I have this rather awkward problem:

For two weeks now, whenever after I've updated/created stored procedures using my SQL scripts, when these SPs are run, they fail with above error.

Other posts dealing with this problem didn't help in my case.

Here's a number of parameters, helping to exclude common solutions which do not apply in my case:

  1. My Stored Procedure scripts work flawlessly on my laptop (SQL Server 2012, Windows Server 2008 R2).
  2. My Stored Procedure scripts correctly create SPs on any other machine (which is our build machine, having SQL Server 2012 installed; our TEST server, having SQL Server 2005 installed, and our PROD server, having SQL Server 2005 installed). However, the SPs won't run on any other machine than mine.
  3. I'm using a database backup of our production SQL Server (SQL Server 2005) on my machine (like any other machine here does).
  4. Even the most basic SP fails (e. g. "DELETE myTable WHERE ID = @delID").
  5. On every SQL Server installation I've checked, Quoted Identifier is set to OFF (!), both on server and on database level. So why all of a sudden are my SPs required to have this option set toON?
  6. I'm using SQLCMD to run my scripts. This gives me an option to dynamically set the server instance's database name in the USE statement.
  7. My scripts only contain a USE statement and right after the ALTER PROCEDURE; or alternatively IF EXISTS (...) DROP PROCEDURE ... GO; CREATE PROCEDURE ...


This all worked for years now, but suddenly, since two weeks ago, SPs created with my scripts suddenly fail.

I know that I could manually set QUOTED_IDENTIFIER to ON in my scripts - but I don't want to. There is something wrong here. I want to know what that problem is.

What's happening here?


Microsoft Marketing should care for customer feedback on their consumer products, e.g.Windows& Office.


Have had Windows 8 …  went back to Windows 7.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>