I keep getting the exception
The SqlParameterCollection only accepts non-null SqlParameter type objects, not String objects
, while execut
Try below
comm.Parameters.Add("@author", SqlDbType.VarChar); comm.Parameters["@author"].Value = dataGridView1.Rows[i].Cells[0].Value.ToString();