摘要: 在new SqlBulkCopy对象的时候,设置一下SqlBulkCopyOptions选项即可,按位或运算SqlBulkCopyOptions.FireTriggers | SqlBulkCopyOptions.CheckConstraintsusing (SqlBulkCopy bulkCopy = new SqlBulkCopy(GlobalString.ConnectionString, SqlBulkCopyOptions.CheckConstraints | SqlBulkCopyOptions.FireTriggers)) { //...........} 阅读全文
posted @ 2011-05-26 17:03 李传涛 阅读(2845) 评论(2) 推荐(1) 编辑