一、事务 http://www.cnblogs.com/Garden-blog/archive/2011/04/21/2023417.html SqlConnection sqlConnection = new SqlConnection(); //...初始化连接 // 开启事务 SqlTransaction sqlTransaction = sqlConnection.BeginTransaction(); // 将事务应用于Command SqlCommand sqlCommand = new SqlCommand();sqlCommand.Connection = sqlConnect