I have some web forms that contain approx 100 to 150 text fields. So, in most of the fields a user can enter a great amount of string data. I had previously entered VARCHAR(150)
, which will not be large enough.
So, my question is, which is better to use: VARCHAR(MAX)
or TEXT
? I am using SQL Server 2008 R2.
There are many related questions available on Stack Overflow, but I am still confused. Assuming web forms with more than 50 fields with the TEXT
datatype, will that cause any performance-related issues, or make our DB very large? I thought that VARCHAR(MAX)
could store up to 8000 characters maximum, but I have some fields that can have more than 8000 characters.
Please guide...