As a follow-up to my previous question:
is there a way to need to find out what the ANSI_NULLS
and ANSI_PADDING
etc. settings where when a given procedure was created in my database ?
It seems my customer there has several stored procedures and a few triggers that have been "tweaked" – but unfortunately, using a "wrong" set of those database settings. Can I find out which procs and triggers are affected, or do I need to re-create all of them with the proper settings?
Best Answer
This can be determined from
sys.sql_modules
:Results:
Some other useful columns:
Note that some settings (e.g.
arithabort
,ansi_warnings
,ansi_padding
) are not stored with the object. Also you will need to recompile the procedures with the correct settings for any that have been identified as "wrong."