Storage Difference between varchar and nvarchar

Posted on 2006-05-24
Last Modified: 2013-11-15
I have a table with two fields. Both are nvarchar in type. I have 100,000 records in this table.
I have stored normal characters only in those fields, it doesn't have any international characters. If i change the datatype from nvarchar to varchar, Will the storage size of that table decreases?

Question by:ynaina
    LVL 12

    Expert Comment

    sizeOf( varchar)= 0.5* sizeOf ( nvarchar)
    LVL 75

    Accepted Solution

    Differences are
    1. Nvarchar can store non unicode characters such as Arabic, Hindi etc, but varchar can't
    2. nvarchar needs double the storage space needed for a varchar

    > If i change the datatype from nvarchar to varchar, Will the storage size of that table decreases
    If the field was previously say nvarchar(4000) and you changed it to varchar(4000),then it will need half space for storage


    Author Comment

    any data loss can happen in this process
    LVL 75

    Expert Comment

    by:Aneesh Retnakaran
    If you dont have unicode characters , nothing will loss

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
    Viewers will learn how the fundamental information of how to create a table.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now