Is there some efficient way how to get length of data in "varbinary(max) filestream" column? I found only samples with conversion to varchar and then calling the "LEN" function.
Asked
Active
Viewed 8,958 times
1 Answers
16
SELECT
length = DATALENGTH(Name),
Name
FROM
Production.Product
ORDER BY
Name
"Returns the number of bytes used to represent any expression."
T-SQL and quote taken from MSDN's DATALENGTH (Transact-SQL) library.
Bern
- 7,441
- 5
- 34
- 47
Jan Remunda
- 7,700
- 8
- 50
- 60