简体   繁体   English

加快从SQL Server 2008 R2到Microsoft Access的导出

[英]Speed up export from SQL server 2008 R2 to Microsoft Access

I need to export 700,000 records from an SQL Server 2008 R2 table to a Microsoft Access database in 2002-2003 format. 我需要将700,000条记录从SQL Server 2008 R2表导出到2002-2003格式的Microsoft Access数据库。 I am using the SQL Server Import and Export Wizard. 我正在使用SQL Server导入和导出向导。 This is currently taking over 2.5 hours. 目前耗时超过2.5个小时。 Because this is all taking place on a high secure server I am limited in my choice of tools. 因为这都是在高度安全的服务器上进行的,所以我在选择工具方面受到限制。 I could export to a text file but that loses some of the formatting. 我可以导出到文本文件,但是会丢失某些格式。

I need a copy of one table from the database in either Access or Excel with formatting preserved. 我需要在Access或Excel中从数据库中复制一张表并保留格式。 Exporting to text/CSV is not available as some of the fields may have commas. 无法导出到文本/ CSV,因为某些字段可能带有逗号。 Also I cannot use Excel as the target because 2008 R2 does not support mode that 64K rows 我也不能使用Excel作为目标,因为2008 R2不支持64K行的模式

Are there any ways to speed this us? 有什么方法可以加快我们的速度吗?

Using Access it should be a snap: 使用Access应该很容易:

Link the table via ODBC, create an empty table in Access as it should appear. 通过ODBC链接表,在Access中创建一个空表,该表应该出现。

Then run an append query using the linked table as source, and writing the data to the local table. 然后,使用链接表作为源运行追加查询,并将数据写入本地表。 The query can also rename the fields (alias) and perform minor modifications as to your needs. 该查询还可以重命名字段(别名),并根据需要进行较小的修改。

If you don't have Access (Office) 2016 installed, I believe a 30 day evaluation version is for download. 如果您没有安装Access(Office)2016,我相信可以下载30天评估版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM