How can I prevent SQL Management Studio (10.50.2500.0) from adding this to the beginning of each stored procedure when right-clicking / Modify?
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
None of these options suit me. ANSI_NULLS ON and QUOTED_IDENTIFIER ON are installed on all my servers, DBs and connections that I make. Also, I never use double quotes (I used brackets for reserved words) and all my fields with null values, which I use correctly if necessary NULL.
I delete the settings every time I edit the procedure. All my procedures properly install them, and that will never change in my environment. Checked by:
SELECT uses_ansi_nulls, uses_quoted_identifier FROM sys.sql_modules WHERE object_id = object_id( 'proc_name' )
sql-server sql-server-2008 ssms sql-server-2008-r2
ThinkingStiff
source share