Expand Minimize
0 out of 1 rated this helpful - Rate this topic

DATALENGTH (SQL Server Compact Edition)

Returns the number of bytes used to represent any expression.


DATALENGTH ( expression ) 
expression

Is an expression of any data type.

The following example returns the DATALENGTH of each company name listed in the Customers table in the Northwind database.

SELECT DATALENGTH(CompanyName), CompanyName
FROM Customers
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.