title: sql insert into asp.net
body: <pre><code>con.Open();
  SqlCommand cmd=new SqlCommand("INSERT INTO user(Firstname,Lastname,Email,Pass,Type)
      values(@first,@last,@email,@pass,@type)",con);
  cmd.Parameters.Add("@first",SqlDbType.NVarChar).Value = txtfirst.Text;
  cmd.Parameters.Add("@last",SqlDbType.NVarChar).Value = txtlast.Text;
  cmd.Parameters.Add("@email",SqlDbType.NVarChar).Value = txtemail.Text;
  cmd.Parameters.Add("@pass",SqlDbType.NVarChar).Value = txtpass.Text;
  cmd.Parameters.Add("@type",SqlDbType.NVarChar).Value = "customer";
  cmd.ExecuteNonQuery();
  con.Close();
  </code></pre>
  
  <p>what is the problem with my syntax it says "Incorrect syntax near the keyword 'user'."</p>