|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, February 11, 2013 8:27 AM
Points: 1,735,
Visits: 1,947
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, February 11, 2013 8:27 AM
Points: 1,735,
Visits: 1,947
|
|
Interestingly, I found the database option "concat null yields null" when set to either True or False, it yields null values only.. unless SET CONCAT_NULL_YIELDS_NULL ON is specified..
I could not upload in the comments section, so find them here..
Test script with the option turned ON

Test script with the option turned OFF

Bru Medishetty
Blog -- LearnSQLWithBru
Join on Facebook Page Facebook.com\LearnSQLWithBru
Twitter -- BruMedishetty
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 6:38 PM
Points: 7,077,
Visits: 7,116
|
|
I think that what is going on here is that the properties of the connection are over-riding the DB option - the connection supporting a QA or SMSS query window always has concat null yields null ON for the connection until it is overridden by a SET statement. The db option is only relevant for connections where concat null yields null is not set for the connection, so it is not relevant to QA or SMSS query windows.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|