Tag: SQL Server DATALENGTH() Function

Use of DATALENGTH Function in SQL

Use of DATALENGTH Function in SQL: (1) “DATALENGTH” function is used to calculate the length of the string. (2) Let’s take an example to calculate the length of the “Name” field in Vendor Table as shown. (3) Select the database in the SQL server and click on the “New Query” button as shown. (4) After that …