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;
Tag: text
Sharing Tips & Tricks from my Database Experience
Tag: text
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;