Tag: datatype

How to find length of a TEXT column?

The "LEN" function cannot be used to find length of a column of datatype "TEXT" so using function "DATALENGTH" one can find the length of TEXT field. Eg: SELECT DATALENGTH(textfiled) lentextfile FROM table;