Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char(100) field VS Text
Message
 
To
19/04/2012 09:19:25
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01542085
Message ID:
01542096
Views:
53
This message has been marked as a message which has helped to the initial question of the thread.
>>You definitely need to use nvarchar() and not nchar for 100 characters data. If you don't need to store unicode data, use varchar.
>
>Again, my question was about the impact and not the type of field for its storage.


Nvarchar uses as many chars as enetered.
Char uses as many chars as defined in table design.
Text field uses different place for storage (If I remember well).

So, NVARCHAR is good when you have to store text with very different lengths. This is good for disk space and for better paging of the DB.
CHAR is better when you have to store a text with almost the same length. That improve speed.

Text I dodn't event want to comment :-). That is like MEMO field in VFP.
I'm not sure if this type still exists in SQL Server 2012.
MS warned that "ntext, text, and image data types will be removed in a future version of Microsoft SQL Server".
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform