日期:2014-05-17 浏览次数:20910 次
for (int i = 0; i < 1000; i++) { try { //插入一条数据 } catch (System.Data.SqlClient.SqlException ex) { System.Data.SqlClient.SqlException sqlex = ex as System.Data.SqlClient.SqlException; if (sqlex.Number != 2627) throw; } }