上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 45 下一页
摘要: 在C#中,我们可以使用sqlBulkCopy去批量插入数据,其他批量插入方法不在讨论。 使用方式如下,这里我将插入100万条数据, 在SqlBulkCopyByDataTable方法中每次插入10万条, 其插入方式SqlBulkCopyOptions.UseInternalTransaction ( 阅读全文
posted @ 2016-07-22 09:41 程序猿网友666 阅读(6517) 评论(0) 推荐(1)
摘要: 通常,我们会对于一个文本文件数据导入到数据库中,不多说,上代码。 首先,表结构如下. 其次,在我当前D盘中有个文本文件名为2.txt的文件。 在数据库中,可以这样通过一句代码插入。 1) bulk insert: 为Sql server 中一个批量插入的操作 2)T_Demo: 要插入的表 3)'D 阅读全文
posted @ 2016-07-22 09:38 程序猿网友666 阅读(3668) 评论(0) 推荐(0)
摘要: 通过SQL自动添加流水号 项目中往往有一些单据流水号或者流程流水号是希望通过新增一条记录后自动产生一个编号的,比如新增一条流程就自动根据当前日期自动添加该流程的流程流水号,下面介绍两种不同类型流水号通过SQL自动产生的方法。 流水号格式: www.2cto.com 第一种(数值类型):日期+流水号, 阅读全文
posted @ 2016-07-01 09:47 程序猿网友666 阅读(7585) 评论(0) 推荐(0)
摘要: import org.apache.xml.serialize.OutputFormat; import org.apache.xml.serialize.OutputFormat; import org.apache.xml.serialize.XMLSerializer; import org.w3c.dom.Document; import org.xml.sax.InputSou... 阅读全文
posted @ 2016-06-28 18:22 程序猿网友666 阅读(25773) 评论(0) 推荐(1)
摘要: 使用axis调用.net带soapheader的webservice是如何实现的,现在贴出代码 <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst 阅读全文
posted @ 2016-06-23 20:23 程序猿网友666 阅读(3897) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 45 下一页