摘要: public int ExcuteCommand(string sql) { int result = -1; OleDbConnection myconn = getcon(); OleDbTransaction trans = myconn.BeginTransaction(IsolationLevel.ReadCommitted); try { OleDbCommand cmd = new OleDbCommand(sql, myconn); cmd.Transaction = trans; trans.Commit(); result = cmd.ExecuteNonQuery(); 阅读全文
posted @ 2011-08-25 14:45 放哨De老鼠 阅读(346) 评论(0) 推荐(0) 编辑