Question

What is correct way to declare varbinary in SQL Server 2008? Now I declaring like this

    DECLARE @BinaryValue varbinary(MAX)
Was it helpful?

Solution

The correct way is like this:

DECLARE @BinaryValue varbinary(MAX)

Consider specifying a length instead of MAX, if you can.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top