SDU Tools: Calculate string length in SQL Server T-SQL

added by DotNetKicks
8/19/2019 3:42:08 PM

135 Views

If you ask SQL Server developers how to calculate the length of a string in T-SQL, most would tell you immediately that you need to use the LEN() function. What most don't realize though, is that it doesn't actually work properly. The T-SQL LEN() function ignores any trailing spaces in a string.


0 comments