Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NChar vs. NVarChar
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01070421
Message ID:
01070424
Views:
15
Einar,

See Char vs Varchar - Performance Thread #982531

>I started thinking (I hate when that happends late on a Friday afternoon): Are there any performance issues between choosing field type NChar and NVarChar?
>
>Take a simple example like an email field. With field type NChar I would normaly reserve 40 (or maybe even 50) characters. Most email addresses are way shorter than 40 (or 50) characters so disk cost would improve if I decided to use NVarChar instead of NChar.
>
>Now you might ask why am I worried about disk cost and the answer to that is that I am not worried about disk cost but the guy that will duplicate my tables on the Pocket PC (SQL CE) is worried about disk cost and he is counting bytes (and bits).
>
>So is there a performance hit by choosing NVarChar over NChar? (If it is then my decision is simple <s>)
>
>Any other random thoughts will also be appreciated.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform