>>How can I find out how many bytes there are in a varbinary field using T-SQL code?
>
>I would use DATALENGTH() function.
Thanks Sergey. In my case DATALENGTH() returned the same value as LEN(), but I noticed that BOL also sugested to use DATALENGTH().
Einar
Semper ubi sub ubi.