What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 40789 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > Difference between VARCHAR and NVARCHAR ...

Difference between VARCHAR and NVARCHAR

Interview question and answer by: Sathya4260 | Posted on: 1/26/2011 | Category: SQL Server Interview questions | Views: 3840 | | Points: 40


Answer:

VARCHAR:

1.Storage: 8 bit
2.Abbreviation: Variable -Length Character String
3.Accepts only English character
4.Doesn't supports other language symbols
5.Runs faster than NVARCHAR as consumes less memory
6.Use this when you develop the application for only local purpose

NVARCHAR:

1.Storage: 16 bit
2.Abbreviation: uNicode
3.Accepts both English character and non-English symbols
4.supports other language symbols
5.Runs slower than VARCHAR as consumes less memory
6.Use this when you use your application globally

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Questpond | Posted on: 27 Jan 2011 05:04:19 AM | Points: 10 | Alert Moderator 

N in the nvarchar stands for unicode. Nvarchar comsumes more space than varchar. Its of 2 bytes. So nvarchar can store english as well non english characters. My personal view is that in todays worlds its better to keep nvarchar so that in case we have to acoomodate more languages tommorrow we do not need to worry on DB design.



Regards,
Important SQL Server interview questions
http://www.questpond.com/dotnet/SQL-Server-Interview-Questions-and-Answers-on-intergration-part3.html

Posted by: Sathya4260 | Posted on: 27 Jan 2011 06:33:24 AM | Points: 10 | Alert Moderator 

Thats right,

When we are developing software globally we should always use nvarchar, and thats wat i have mentioned in last point...


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Sathya4260

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 6:02:42 AM