Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many bytes in a varbinary field?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01284601
Message ID:
01284615
Views:
10
>How can I find out how many bytes there are in a varbinary field using T-SQL code?
>Thanks,
>Einar
DECLARE @test varbinary(max)
SET @test = CAST('aaaa' as varbinary(max))
SELECT LEN(@test)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform