摘要: #region使用SqlBulkCopy publicstaticboolExecuteTransactionScopeInsert(DataTabledt,intbatchSize){intcount=dt.Rows.Count;stringtableName="TestTable";intcopyTimeout=600;boolflag=false;try{using(SqlConnectioncn=newSqlConnection(connectionString)){using(TransactionScopescope=newTransactionScope()) 阅读全文
posted @ 2013-08-14 09:47 Ciel Water 阅读(503) 评论(0) 推荐(0) 编辑