Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null in where clause
Message
From
23/02/2001 13:30:08
 
 
To
23/02/2001 08:38:24
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00478555
Message ID:
00478961
Views:
30
>Will the effect then be limited to that SP? In other words if someone else is hitting the DB at the same time doing something else - they won't be affected by the 1st SP's setting?

When you execute the SP, it will implicitly change ANSI_NULL to OFF and then restore it after the SP executes. You should be able to prove this to yourself by creating two stored procedures, one with ANSI_NULL OFF and the other ON.

>> ... if someone else is hitting the DB at the same time doing something else

All SETs are scoped to the connection.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform