Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null in where clause
Message
De
23/02/2001 13:30:08
 
 
À
23/02/2001 08:38:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00478555
Message ID:
00478961
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform