运行后一直显示报错 这是为什么

     private void tsmiSH_Click(object sender, EventArgs e)
    {
        int m = dataGridView1.CurrentRow.Index;
        String name = dataGridView1.Rows[m].Cells[0].Value.ToString();
        DialogResult cc = MessageBox.Show("确定要通过" + name + "的审核吗?", "信息提示", MessageBoxButtons.YesNo);
        if (cc == DialogResult.Yes)
        {
            SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=User;Integrated Security=True;MultipleActiveResultSet                 s=true");
            conn.Open();
            String sql = "updata total set login = 'yes' ";
            SqlCommand Command = new SqlCommand(sql, conn);
            Command.ExecuteNonQuery();
            int z = Command.ExecuteNonQuery();
            if (z > 0)
            {
                MessageBox.Show("审核失败!");

            }
            else
            {
                MessageBox.Show("审核成功!");
                Formshenhe frm = new Formshenhe();
                frm.Show();

                this.Hide();
            }
        }
        }

img

img

        String sql = "updata total set login = 'yes' ";  你这对吗?   你把sql拿出去去数据库里执行  你看对吗?
       不应该是update 希望对你有所帮助