Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behaviour of concatinated strings with NULL stri
Message
From
27/08/1999 14:18:52
 
 
To
26/08/1999 12:51:14
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00258029
Message ID:
00258553
Views:
11
Wrong option. ANSI_NULLS controls the results of comparing a value to NULL using = or <>. If ANSI_NULLS is ON, any comparison against a NULL will always return FALSE. If ANSI_NULLS is OFF, a comparison against a NULL will be handled as if the NULL were any other literal. The SQL 92 standard required that ANSI_NULLS be set to ON.

The option that you want is SET CONCAT_NULL_YIELDS_NULL. If it's ON, SELECT 'X'+NULL returns NULL. If it's OFF, SELECT 'X'+NULL returns X

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

Click here to load this message in the networking platform