[c#] What size do you use for varchar(MAX) in your parameter declaration?

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)?

cmd.Parameters.Add("@blah", SqlDbType.VarChar, ?????).Value = blah;

This question is related to c# sql-server-2008 ado.net

The answer is


In this case you use -1.


Similar questions with c# tag:

Similar questions with sql-server-2008 tag:

Similar questions with ado.net tag: