title: Error while inserting record: Column name or number of supplied values do not match table definition
body: <p>Im trying to insert data into my Sql Database but I get the following message:</p>
  
  <p>"Column name or number of supplied values do not match column definition"</p>
  
  <p>Here is the code snippet i wrote for the task:</p>
  
  <pre><code> string sql = "INSERT INTO [dbo].[user_table] VALUES('" + NameOfUser + "," + username + "," + userPIN + "," + category + "," + BeginTimePicker.Text + "," + EndTimePicker.Text + "',@img)";
              SqlCommand cmd = new SqlCommand(sql, conn);
  
              conn.Open();    //open connection to database
              cmd.Parameters.Add(new SqlParameter("@img", img));
              cmd.ExecuteNonQuery();  //used with insert, update, delete
              conn.Close();
  </code></pre>
  
  <p>My database table looks like this:
  <a href="http://i.stack.imgur.com/Bl0Wl.png" rel="nofollow">user_table screenshot</a></p>
  
  <p>Any idea what might be going wrong? I'm stuck on this for quite some time. Help will be appreciated. Thanks.</p>