2
What kind of data can I use to store text "dynamically" in SQL Server?
I know that CHAR
and VARCHAR
are character data types, the difference is that CHAR
is a type of data fixed length and VARCHAR
is of variable length up to 255. I’m sure?
Now if I want to write a text of x characters larger than 255, which data type should I use?
Define "dynamic".
VARCAHR
accepts up to 2GB.– Maniero
As Maniero said, really not only is 255 the varchar, 4000 already a very large value, but if you need more than this can use varchar(max)
– Lucas Miranda
if it’s dynamic I can only think of
varchar
– Ricardo Pontual