Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char(100) field VS Text
Message
From
19/04/2012 09:26:32
 
 
To
19/04/2012 08:58:10
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01542085
Message ID:
01542095
Views:
54
This message has been marked as a message which has helped to the initial question of the thread.
>In a table having about 26 million records and counting, it contains only a few fields however, what would be the impact of using Char(100) field VS Text or NVarChar field, whatever the field type which would be used? The reason I ask is that the first 26 million records won't have a value in this new field. It is just a caption to enter some text about upcoming images. The table takes 30 GB presently totalling the data + index + reserved. Whichever field type I choose, would there be a space advantage of one over the other or this doesn't matter in SQL Server?


nVarchar(100) does not reserve space for 100 chars if the contents are less than 100 chars

Also - but I think it was introduced in R2 - look at page or column compression
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform