![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
The nvarchar data type provides support for Unicode characters. This is needed if you are building an international system that must store different languages. However, if you have no need to store Unicode characters then you are better using varchar. The nvarchar data type occupies twice the space of varchar as it uses 2 bytes to encode each character. HTH, Plamen Ratchevhttp://www.SQLStudio.com |
#4
| |||
| |||
|
|
On 26 Feb, 15:13, "Plamen Ratchev" <Pla... (AT) SQLStudio (DOT) com> wrote: The nvarchar data type provides support for Unicode characters. This is needed if you are building an international system that must store different languages. However, if you have no need to store Unicode characters then you are better using varchar. The nvarchar data type occupies twice the space of varchar as it uses 2 bytes to encode each character. HTH, Plamen Ratchevhttp://www.SQLStudio.com varchar will support a lot of characters from different languages though (depending on the collation codepage) so no need to rush into doubling your storage if you dont "really" need to |
#5
| |||
| |||
|
|
Hi, I am new to MS SQL. When I create a column in a table, when shall I use nvarchar or varchar? Please help. Thanks, Mike |
#6
| |||
| |||
|
|
I am new to MS SQL. When I create a column in a table, when shall I use nvarchar or varchar? Please help. Clearly you need to go back to reading the manual or get a Dummy's book if you don't know the difference between unicode and ascii strings. |
![]() |
| Thread Tools | |
| Display Modes | |
| |