sql server - Why must QUOTED_IDENTIFIER be on for the whole db if you have an indexed view? -


yesterday added indexes on view in mssql 2008 db. after seems store procedures need run quoted_identifier set on, don't use view in question.

why so? can configure on db or have update stored procedures set quoted_identifier on? think rather weird required stored procedures not using view.

do these stored procedures relate base table(s) view based upon? quote creating indexed views:

after clustered index created, connection tries modify base data view must have same option settings required create index. sql server generates error , rolls insert, update, or delete statement affect result set of view if connection executing statement not have correct option settings. more information, see set options affect results.

and it's kind of obvious, when think - you're potentially going updating contents of view whenever touch these base tables, , inherit same responsibilities when created index.

you can set defaults @ multiple levels:

  • any application can explicitly override default settings executing set statement after has connected server. set statement overrides previous settings , can used turn options on , off dynamically application runs. option settings applicable current connection session.

  • ole db , odbc applications can specify option settings in effect @ connection time specifying option settings in connection strings. option settings applicable current connection session.

  • set options specified sql server odbc data source using odbc application in control panel or odbc sqlconfigdatasource function.

  • default settings database. can specify these values using alter database or object explorer in sql server management studio.

  • default settings server. can specify these values using either sp_configure or object explorer in sql server management studio set server configuration option named user options.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -