摘要:
有时候写一些操作数据库是,要执行多条Sql语句,不得不用事务处理。用程式方法: public static bool ExecuteSqlTransaction(ArrayList list) { bool yes = false; using (SqlConnection con = new SqlConnection(_ConnectString)) { con.Open(); using (SqlTransaction trans = con.Beg... 阅读全文