Example
Return the length of a string:
SELECT LEN('Iampsp.com');
Definition and Usage
The LEN() function returns the length of a string.
Note: Trailing spaces at the end of the string is not included when calculating the length. However, leading spaces at the start of the string is included when calculating the length.
Tip: Also look at the DATALENGTH() function.
Syntax
LEN(string)