string sqlcom = string.Format("update biao set aaa='xingbu' where id=3");
string lujing = Application.StartupPath;
OleDbConnection conn = new OleDbConnection(string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}\\qian.mdb;Persist Security Info=True",lujing));
conn.Open();
OleDbCommand comm = new OleDbCommand(sqlcom, conn);
comm.ExecuteNonQuery();
comm.Dispose();
conn.Close();以上的代码如果是Web服务中可以顺利完成对数据库的更新。但在窗体程序中能顺利运行,执行“select”操作能返回结果,而对于“insert、update”则无动于衷,就是数据库没有发生数据的更改或者插入