Result: 15
SELECT DATALENGTH(' TipsMake.com ');
Result: 17
SELECT DATALENGTH(1234);
Result: 4
SELECT DATALENGTH('20-02-2019');
Result: 10
SELECT DATALENGTH(' ');
Result: 1
SELECT DATALENGTH('');
Result: 0
SELECT DATALENGTH(NULL);
Result: NULL
Previous article: Operator '+' in SQL Server
Next lesson: LEFT function in SQL Server