2

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

    DECLARE @BinaryValue varbinary(MAX)
Ankush Madankar
  • 3,689
  • 4
  • 40
  • 74
  • 1
    http://stackoverflow.com/questions/12426756/using-variable-to-specify-size-when-declaring-a-varbinary – Akash KC Aug 26 '13 at 05:35

1 Answers1

2

The correct way is like this:

DECLARE @BinaryValue varbinary(MAX)

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

ta.speot.is
  • 26,914
  • 8
  • 68
  • 96