devxlogo

February 13, 2019

Using the DATALENGTH SQL Function

The DATALENGTH SQL returns the length of columns in a table. SELECT length = DATALENGTH(ColumnName) FROM TableName ORDER BY ColumnName