MSSQLString FunctionsDATALENGTH
LEN

DATALENGTHString Functions

UPPER

Returns the byte count of an expression.

Syntax

DATALENGTH(expr)

Example

Enter values below to update the example in real time.

name
byte_len
customers
SELECT name, DATALENGTH(name) AS byte_len FROM customers;