Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char(100) field VS Text
Message
From
19/04/2012 11:11:23
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01542085
Message ID:
01542118
Views:
26
>Can you show your statement? This error message means that TEXT type can not be used for exact match. Varchar field can and should be used.

Ok, now I am confused. I did the same test again and did not get the error this time. So, on this second simulation, searching for exact value on a VarChar(10) field worked. So, this brings it down to using VarChar(100), assuming 100 characters would be the maximum to support, and would save a bunch of disk space on the database because the first 26 million records won't be affected and for the upcoming ones which would be empty or containing not that much characters. This is as good as long as I do not need the unicode support.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform