Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie .. char and nvarchar
Message
 
To
13/05/2003 06:03:04
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00787622
Message ID:
00787627
Views:
11
A Char field into a table will reserve and always use the number of characters you give it (filling the field with blanks). It is like a "dim s as string * 20" in VB.

A VarChar field is variable length and will contains a maximum of character specified into the declaration and is not filled with blanks so it can actually take less space into the table. It is like a "dim s as string" in VB.

the N in front of any character datatype is to tell that the field will be saved into unicode format.


>I am very new with this .. what I want to ask is: what's the difference between char and nvarchar? .. please explain .. many thanks
>
>
>Winan
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform