I normally set my column size when creating a parameter in ADO.NET
But what size do I use if the column is VARCHAR(MAX)?
VARCHAR(MAX)
cmd.Parameters.
For those of us who did not see -1 by Michal Chaniewski, the complete line of code:
cmd.Parameters.Add("@blah",SqlDbType.VarChar,-1).Value = "some large text";