문제

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