Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 611789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:49:20+00:00 2026-05-13T17:49:20+00:00

Ok, i know CONCAT_NULL_YIELDS_NULL will always be set to ON in future versions of

  • 0

Ok, i know CONCAT_NULL_YIELDS_NULL will always be set to ON in future versions of SQL (insert MSDN search params(yadda,yadda)) so bear with me.

Boring details: The platform is MSSQL 2000 Enterprise (v8 sp4) AKA Critatious Period Edition.

The following will evaluate to NULL

SELECT 'abc' + NULL; 

Understandable. But you can circumvent this with the following:

SET CONCAT_NULL_YIELDS_NULL OFF;
SELECT 'abc' + NULL; 

In which case the result is “abc”. From here on, future sql statements will allow concatenation with NULL. But is this a ‘persistent’ runtime setting? Such as, is this setting only applied for my session to the SQL server, or does it apply to statements executed by all users?

As far as i can tell, after setting _YIELDS_NULL to ON, a restart to the MSSQL services will have it default back to OFF (correct me if i’m wrong).

Last thing: I’m not actually planning to put this into practice. A third-party stored procedure failed (looks like they might have updated it, breaking it). Best i can figure is that they implemented it with the assumption that “SET CONCAT_NULL_YIELDS_NULL” was set to ON. And it used to always work.

I’m just looking for a cause: Is there a way to have CONCAT_NULL_YIELDS_NULL set to ON upon SQL server startup?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:49:21+00:00Added an answer on May 13, 2026 at 5:49 pm

    CONCAT_NULL_YIELDS_NULL can be set:

    • per connection – when you close connection and open new, it’s back to default

    • per database

      • open Microsoft SQL Server Management Studio, rightclick your database and select properties. It’s in the Miscellaneous section.
    • or from T-SQL

      ALTER DATABASE database_name SET { CONCAT_NULL_YIELDS_NULL OFF }

    Note: some clients can issue set concat_null_yields_null on command when opening connection. For example SQL Server Management Studio connecting to SQL 2005 does.
    Use SQL Server Profiller to find about your connection.

    I do not have SQL 2000 on my notebook to test exactly on that version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know you can not set a key value dynamically, but what about the
Anybody know what's wrong with my trigger declaration? CREATE TRIGGER `sch_trigger_curriculum_subject_before_insert` BEFORE INSERT ON
I just trying to know is this possible the function of MYSQL GROUP_CONCAT to
Know this might be rather basic, but I been trying to figure out how
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
I know that Phonegap has an event for back button, but it's only available
I know there have been many questions on grid and pack in the past
I know that this sort of question has been asked here before, but still
Anyone know how I can make a login button in Ruby on Rails for
i know this is a stupid question but i d'ont know how to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.