Col_Length() : This function returns the actual size of the table column in bytes. It gives us a small integer value as function output. This function returns the actual storage bytes for that column. For instance, if the column type is nvarchar(30) then it returns 60 else if smallint then it returns 2 else if varchar(max) then it returns -1. It also returns null if we do have permission to access that object or if we pass invalid argument string.
Function Syntax
COL_LENGTH ( ‘table’ , ‘column’ )
Example
Executing this function using Adventurework database objects