I am trying to determine the size in bytes of the contents in a VARBINARY(MAX) field in SQL Server 2005, using SQL. As I doubt there is native support for this,
VARBINARY(MAX)
Actually, you can do this in T-SQL!
DATALENGTH() will work on varbinary(max) fields.
DATALENGTH()
varbinary(max)