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

  • SEARCH
  • Home
  • 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 859743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:43:09+00:00 2026-05-15T08:43:09+00:00

Allowing NULL values on a column is normally done to allow the absense of

  • 0

Allowing NULL values on a column is normally done to allow the absense of a value to be represented. When using NVARCHAR there is aldready a possibility to have an empty string, without setting the column to NULL. In most cases I cannot see a semantical difference between an NVARCHAR with an empty string and a NULL value for such a column.

Setting the column as NOT NULL saves me from having to deal with the possibility of NULL values in the code and it feels better to not have to different representations of “no value” (NULL or an empty string).

Will I run into any other problems by setting my NVARCHAR columns to NOT NULL. Performance? Storage size? Anything I’ve overlooked on the usage of the values in the client code?

  • 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-15T08:43:10+00:00Added an answer on May 15, 2026 at 8:43 am

    A NULL indicates that the value in the column is missing/inapplicable. A blank string is different because that is an actual value. A NULL technically has no data type where as a blank string, in this case, is nvarchar.

    I cant see any issues with having default values rather than NULL values.

    In fact, it would probably be beneficial as you wouldn’t have to worry about catering for NULL values in any of your queries

    e.g

    Select Sum(TotalPrice) as 'TotalPrice' From myTable Where CountOfItems > 10
    

    much easier than

    Select Sum(IsNull(TotalPrice,0)) as 'TotalPrice' From myTable Where IsNull(CountOfItems,0) > 10
    

    You should use default constraints in your DDL to ensure that no rogue NULL‘s appear in your data.

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

Sidebar

Related Questions

I know that logically, there are some cases where NULL values make sense in
I am using SQL Server 2005. I want to constrain the values in a
Coming from Java I'm confused by the use of Void allowing a return value
Consider: SET @PREFIX='DEV_'; SET @REFRESHDB=CONCAT(@PREFIX,'Refresh'); CREATE TABLE @REFRESHDB.`Metadata` ( `Key` VARCHAR(30) NOT NULL, `Value`
When adding a new non-nullable column to a table using code first migrations, it
I am having trouble with developing my Android application, I am currently using Eclipse
I'm interesting in some design choices of C# language. There is a rule in
I have a boolean column called ended . Recently I have changed it to
Are there any patterns which are similar to Groovy's safe navigation operator ? This
My SQL schema is CREATE TABLE Foo ( `bar` INT NULL , `name` VARCHAR

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.