User-1174608757 posted
Hi sathyaav
According to the error code, you haven't provide enough parameters for your method. Else if you want to set the length of parameter, you could use the size property of parameter s.Here is the code, I hope it could help you.
static void CreateSqlParameterSize()
{
string description = "12 foot scarf - multiple colors, one previous owner";
SqlParameter parameter = new SqlParameter("Description", SqlDbType.VarChar);
parameter.Direction = ParameterDirection.InputOutput;
parameter.Size = description.Length;
parameter.Value = description;
}
Best Regards
Wei