摘要:
//事务处理 SqlConnection con = new SqlConnection(@"server=20101124-0948\SQL2005;database=zhiyonglengku;uid=luanhui;pwd=px7034;"); con.Open(); SqlTransaction tran = con.BeginTransaction(); try { SqlCommand cmd1 = new SqlCommand(strinSql, con); cmd1.Transaction = tran; cmd1.ExecuteNonQuery(); Sq 阅读全文