SQL SERVER – Find Length of Text Field
To measure the length of VARCHAR fields the function LEN(varcharfield) is useful. To measure the length of TEXT fields the function is DATALENGTH(textfield). Len will not work for text field. Example: SELECT DATALENGTH(yourtextfield) ASÂ TEXTFieldSize Reference : Pinal Dave (https://blog.sqlauthority.com)
Read More