using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Data.SqlClient; using System.Data; namespace 样本采购订单 { class Program { static void Main(string[] args) { Stopwatch st = new Stopwatch(); st.Start(); string connectionString = @"Data Source=192.168.0.20;Initial Catalog=misdb;User ID=sa;Password=123456;Replication=True"; string SqlConnectionStringTarget = "Data Source=192.168.0.20;Initial Catalog=Basedb;User ID=sa;Password=123456;Replication=True"; //DataTable sourceData = new DataTable(); // 源 using (SqlConnection sourceConnection = new SqlConnection(connectionString)) { //源表查询数据 SqlCommand myCommand = new SqlCommand(
关于批量导入数据类SqlBulkCopy 导入数据时增加额外的列
最新推荐文章于 2023-07-05 12:33:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)