DATALENGTH

Description

This function returns the number of bytes used to represent any expression. (DATALENGTH in Transact-SQL).

Sample Source Pattern

Syntax

DATALENGTH ( expression )   

Examples

Code:

IN -> SqlServer_01.sql
SELECT DATALENGTH('SomeString') AS SIZE;

Result:

SIZE|
----+
  10|

Known Issues

No issues were found.

No related EWIs.

Last updated