سؤال

What does it mean if you add a parameter to a query and set its size to -1?

Example:

sqlCommand.Parameters.Add("@data", SqlDbType.VarChar, -1).Value = jsonData;
هل كانت مفيدة؟

المحلول

This is the size you need to set for fields within a database that have a size of MAX IE. varchar(max) / nvarchar(max) etc

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top