Recently I faced a issue when using len() in a query to find out the length of a query, len() was not counting the trailing spaces in the value. Bu
len()
Be careful. DATALENGTH returns the number of bytes used, not the number of characters.