title: Expected query name after EXECUTE
body: <p>I have problem with executing stored procedure in my asp.net project using .mdb database. I would like to use stored procedure but after executnion code...</p>
  
  <pre><code>using (OleDbConnection conn = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Database"].ConnectionString.ToString()))
                  {
                      conn.Open();
                      using (OleDbCommand com = new OleDbCommand("Insert", conn))
                      {
                          com.CommandType = CommandType.StoredProcedure;
                          com.Parameters.AddWithValue("@Login", UserName0.Text);
                          com.Parameters.AddWithValue("@Password", Hashing.Hash(ConfirmPassword0.Text));
                          com.Parameters.AddWithValue("@Role", RoleList1.SelectedValue);
                          com.ExecuteNonQuery();
                      }
                      conn.Close();
  </code></pre>
  
  <p>i have exception: </p>
  
  <blockquote>
    <p>System.Data.OleDb.OleDbException: Expected query name after EXECUTE.</p>
  </blockquote>
  
  <p>but when i use below the code everything is ok. 
  i also changed:  CommandType.StoredProcedure to CommandType.Text but it's still not work. Could somebody help me?</p>
  
  <pre><code>using (OleDbConnection conn = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Database"].ConnectionString.ToString()))
                  {
                      conn.Open();
                      using (OleDbCommand com = new OleDbCommand("INSERT INTO Workers ( st_login, st_password, st_role ) VALUES (login, password, role);", conn))
                      {
                          com.Parameters.AddWithValue("@Login", UserName0.Text);
                          com.Parameters.AddWithValue("@Password", Hashing.Hash(ConfirmPassword0.Text));
                          com.Parameters.AddWithValue("@Role", RoleList1.SelectedValue);
                          com.ExecuteNonQuery();
                      }
                      conn.Close();
  </code></pre>