blah blah blah is here! blah blah » Close

up0down
link

Hi,
In SQL what's the difference between nVarchar and Varchar?
Assume i need to store a report of 30, 000 charactors, which SQL string type i have to use to store the report object?
cheers

last answered 2 years ago

1 answers

up0down
link

SQL Server provides both datatypes to store character information. For the most part the two datatypes are identical in how you would work with them within SQL Server or from an application. The difference is that nvarchar is used to store unicode data, which is used to store multilingual data in your database tables. Other languages have an extended set of character codes that need to be saved and this datatype allows for this extension. If your database will not be storing multilingual data you should use the varchar datatype instead. The reason for this is that nvarchar takes twice as much space as varchar, this is because of the need to store the extended character codes for other languages from Ask The Database Expert: Questions & Answers

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback