string sql = "deletefrom book where k_id='" +Convert.ToInt32( this.TextBox1.Text)
+ "'and name='"
+ this.TextBox2.Text.ToString() + "'";
deletefrom 里面没空格
and 前面少个空格
应该
string sql = "delete from book where k_id='" +Convert.ToInt32( this.TextBox1.Text)
+ "' and name='"
+ this.TextBox2.Text.ToString() + "'";