Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char(100) field VS Text
Message
 
À
19/04/2012 09:59:12
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01542085
Message ID:
01542099
Vues:
37
>>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.
>
>Also, one has to keep in mind that Char is indexable and doesn't require full text indexing to be optimized. IAC, full text indexing will never be as powerful as a regular index, when comes time to search for everything starting with.

Maybe I'm not reading what you're saying right, but Varchar and nVarchar are indexable w/o full text indexing. Searching for things starting with whatever works fine on varchar and nvarchar.

I use varchar for pretty much anything that isn't a constant length.

>
>>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".
>
>Yes, but only a small adjustment in the database when time will come.
>
>Thanks for the feedback
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform