Using the DATALENGTH SQL Function February 13, 2019 3:02 pm The DATALENGTH SQL returns the length of columns in a table. SELECT length = DATALENGTH(ColumnName) FROM TableName ORDER BY ColumnName