Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Varchar vs char
Message
From
03/11/1999 09:17:16
 
 
To
03/11/1999 09:04:04
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Miscellaneous
Thread ID:
00285417
Message ID:
00286064
Views:
22
>Is there any beneifit or disadvantage to indexing on varchar() vs char() that you are aware of?

There is a golden rule - smaller is better. The smaller the row, the more rows per page, the more data retrieved in a page I/O. The same holds for indexes. The smaller the key, the more keys per page, the more data retrieved in a page I/O. Also, there is incentive to keeping the size of the clustered key small since it becomes part of the key in non-clustered indexes.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform