using (SqlCommand cc = new SqlCommand("INSERT INTO [dbo].[C9_V] ([C9],[V],[OID],[USERMODIF]) VALUES (@C9, @V, @OID, @USERMODIF)", conn)) { cc.Parameters.AddWithValue("@C9", dataGridView1.Rows[i].Cells[0].Value); cc.Parameters.AddWithValue("@V", dataGridView1.Rows[i].Cells[1].Value); cc.Parameters.AddWithValue("@OID", textBox1f2.Text); cc.Parameters.AddWithValue("@USERMODIF", user); cc.ExecuteNonQuery(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)