Table of Contents

    Understanding the LEN() Function in SQL Server: A Comprehensive Guide

    Understanding the LEN() Function in SQL Server: A Comprehensive Guide

    Syntax:

    
    LEN(String_Expression)
    

    Returns the count of total characters, in the given string expression, excluding the blanks at the end of the expression.

    Code:

    
    Select LEN('SQL Functions   ')
    

    Output:

    The above code will produce the following result-

    
    13