Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Sqldependency/QueryNotification - QuotedIdentifiers settings

$
0
0

Hi,

I have a project where I am monitoring a table (TableA) for changes using sqldependency. Within that application I am selecting some support data from three other tables (TableB/TableC and TableD). As suggested in the sqldependency samples I turned on Ansinulls, quotedidentifiers and other settings on my select stored procedure for the querynotification. 

As soon as my application starts running the other applications (Console jobs and windows appln) started to fail on Table B,C and D with the following error

Unhandled Exception: System.Exception: UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations., 

I am only using querynotification command on TableA so I am not sure why the stored procedures called by other applns on TableB, C and D getting the above error message. I looked at some Stored procedured that it failed and found quoted identifiers is turned off.

I am new to sql dependency and trying to understand whats the connection b/w sqldependecy and Ansinull/quotedidentifiers settings

1) Do I need to turn ON the Ansi nulls and quoted identifiers on the DB level?

2) Do I have to turn on the Ansinulls and quotedidentifiers on all stored procedures using the tables which is used by my sqldeendency application (ie., Table A,B,C and D).

3) Eventhough I am only monitoring Table A why Table B,C and D is complaining about the settings.

4) Is this only affecting Table A,B,c and D or all tables in the DB where sqldependency is turned ON

5) In addition to Ansi nulls and quoted identifiers what other settings I need to turn ON on these procedures..

Please provide me some explanations and what is the best solution to address this issue. we have at least 1000 stored procedures on this DB. So I have to find the SP's uses these tables and alter them to include these settings on.  

Appreciate your time and answer

Thanks





Viewing all articles
Browse latest Browse all 461

Trending Articles



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