Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パラメータをクエリに追加し、そのサイズを -1 に設定するとはどういう意味ですか?
例:
sqlCommand.Parameters.Add("@data", SqlDbType.VarChar, -1).Value = jsonData;
これは、サイズがMAX IE のデータベース内のフィールドに設定する必要があるサイズです。varchar(max)/nvarchar(max)など
MAX
varchar(max)
nvarchar(max)