Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What SqlDbType maps to varChar(max)?

What SqlDbType maps to varChar(max)? SqlDbType.VarChar says that it is limited to 8K, though that may be a documentation error.

like image 638
Jonathan Allen Avatar asked Feb 27 '09 19:02

Jonathan Allen


1 Answers

Actually you can use it with VarChar. If it is a parameter you can build it with: new SqlParameter("@myparam", SqlDbType.NVarChar, -1)

See: http://msdn.microsoft.com/en-us/library/bb399384.aspx

like image 195
eglasius Avatar answered Sep 17 '22 16:09

eglasius