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;

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.