April 4, 2011 at 10:54 am
Hi,
Is there an automated way to SET ANSI NULLS OFF for a specific object type ?. For example, if i want to SET ANSI NULLS OFF for all the stored procedures in a database, is there a way to do this.
Currently i have to run the script for every stored procedure.
Thanks
April 4, 2011 at 11:12 am
sankar.jayavelu (4/4/2011)
Hi,Is there an automated way to SET ANSI NULLS OFF for a specific object type ?. For example, if i want to SET ANSI NULLS OFF for all the stored procedures in a database, is there a way to do this.
Currently i have to run the script for every stored procedure.
Thanks
Since that particular setting (SET ANSI NULLS OFF) has been (IIRC) deprecated, my suggestion would be to learn how to properly use and compare NULLs instead of using the setting you propose.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 4, 2011 at 11:30 am
Sure.. for future objects i would be checking it. But there a some old procedures and functions that currently uses the ANSI NULLS ON. Without changing the entire procedures and functions, i need to reset those.
April 4, 2011 at 8:20 pm
There's no automated way unless you affect the entire session or database. You can add the setting to individual procs but that will affect the entire proc.
Setting ANSI NULLS to OFF is still a bad idea IMHO.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply