📅  最后修改于: 2022-03-11 14:56:20.999000             🧑  作者: Mango
If you try to use len() on a Text field, you will get an error Argument data type text is invalid for argument 1 of len function.
The answer to this is the Datalength() function which will return the length of any expression. This can be used on all data types including text, ntext, image and varbinary.