DATALENGTH() AND COL_LENGTH() in SQL Server

DATALENGTH

 
DATALENGTH function returns the number of bytes used to represent any expression. DATALENGTH is especially very useful with varchar, varbinary, text, image, nvarchar, and ntext data types because these data types can store variable-length data. Continue reading “DATALENGTH() AND COL_LENGTH() in SQL Server”