System.Data.SqlClient.SqlTransaction tran = new System.Data.SqlClient.SqlTransaction(conn);tran.Commit();tran.RollBack();你东西你什么地方不明白