This blog shows how to use the LEN function to get the number of characters in a string using SQL.
Example:
SELECT LEN(N'This is a sample lenght to check')
The expected output would be 32
SQL Server Transact Basic to Expert - Get number of characters using LEN
SQL Server Transact Basic to Expert - Get number of characters using LEN


Join the conversation! Your thoughts help the community grow.