摘要: 在实际的工作需要中,我们有时候需将大量的数据导入到数据库中。这时候我们不得不考虑的就是效率问题。本文我们就介绍了一种将大量数据高效地导入SQL Server数据库的方法,该方法是使用BULK INSERT来实现的,接下来就让我们来一起了解一下这部分内容。 源数据(文本文件) 下载了大量的股票历史数据 阅读全文
posted @ 2014-03-27 16:34 深南大道 阅读(233) 评论(0) 推荐(0)
摘要: SQLite包含了如下时间/日期函数: datetime().......................产生日期和时间 date()...........................产生日期 time()...........................产生时间 strftime()... 阅读全文
posted @ 2014-03-27 15:32 深南大道 阅读(565) 评论(0) 推荐(0)
摘要: (1)自定义纸张设置 控制面板->打印机和传真->右键->服务器属性->创建新的格式 (2)自定义纸张使用 this.printDocument1.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("NewPrint", iWidth, iHeight); NewPrint:制... 阅读全文
posted @ 2014-03-27 15:06 深南大道 阅读(1791) 评论(0) 推荐(0)
摘要: //write txt StringBuilder builder = new StringBuilder(); FileStream fs = new FileStream(saveFileName, FileMode.Create); StreamWriter sw = new StreamWr 阅读全文
posted @ 2014-03-27 14:47 深南大道 阅读(238) 评论(0) 推荐(0)
摘要: //C# 的串口通信,是采用serialPort控件,下面是对serialPort控件(也是串口通信必备信息)的配置如下代码: serialPort1.PortName = commcomboBox1.Text; serialPort1.BaudRate = int.Parse(baudcomboBox2.Text); serialPort1.Parity = (Parity)Enum.Par... 阅读全文
posted @ 2014-03-27 14:05 深南大道 阅读(3162) 评论(0) 推荐(0)
摘要: //重启主程序 //System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); #region 读存app.config字段值 public static string G 阅读全文
posted @ 2014-03-27 10:18 深南大道 阅读(314) 评论(0) 推荐(0)