title: How to give ADO.NET Parameters
body: <p>I want to create a SQL command that adds record to DB. I tried the following code but it doesn't seem to be working:</p>
  
  <pre><code>SqlCommand comand = new SqlCommand("INSERT INTO Product_table Values(@Product_Name,@Product_Price,@Product_Profit,@p)", connect);
  SqlParameter ppar = new SqlParameter();
  ppar.ParameterName = "@Product_Name";
  ppar.Value = textBox1.Text;
  MessageBox.Show("Done");
  comaand.Parameters.Add(ppar);
  </code></pre>