Author: SSWUG Research

Community

Len() and DataLength()

(John Huang) Both system functions, Len() and DataLength(), in SQL Server are used to measure the length of the data. The main difference of those 2 is that Len() gets the string length of the data in which DataLength measures the storage length of the data.