SqlBulkCopy sqlbulkcopy = new SqlBulkCopy("", SqlBulkCopyOptions.UseInternalTransaction);
sqlbulkcopy.DestinationTableName = "Test";//数据库中的表名
sqlbulkcopy.WriteToServer(dt);
SqlBulkCopy sqlbulkcopy = new SqlBulkCopy("", SqlBulkCopyOptions.UseInternalTransaction);
sqlbulkcopy.DestinationTableName = "Test";//数据库中的表名
sqlbulkcopy.WriteToServer(dt);