[英]Copy large amount of data from ms access table (with 2.3 mimion recs) to sql 2000 server using ADO in VB6
i have a ms access (2.3 mimion recs) table and need to copy to sql server 2000 DB, every day i have new 15000 Recs to be imported to sql server 2000 我有一个ms访问权限(2.3 mimion recs)表,需要复制到sql server 2000 DB,每天我都有要导入到sql server 2000的新的15000 Recs
so i need a sql statement NOT a loop to copy data from access to sql. 因此,我需要一个sql语句,而不是一个循环来从对sql的访问中复制数据。
using vb6, ado 使用vb6,ado
Copying 15,000 from Access to Sql daily even a row at a time should not be a significant problem in terms of performance, etc. 每天甚至一次连续从Access复制到Sql 15,000,对于性能等而言都不是一个大问题。
However, you could connect to the Jet provider from inside SQL server and then treat the Access data just like any other ODBC linked server from inside SQL server. 但是,您可以从SQL Server内部连接到Jet提供程序 ,然后像从SQL Server内部将任何其他ODBC链接的服务器一样对待Access数据。
Just in case you see references to an ACE driver -- The Ace driver replaces the Jet Driver in newer version of Access. 以防万一您看到对ACE驱动程序的引用-在较新版本的Access中,Ace驱动程序替代了Jet驱动程序。
Personally, I would still use a client based app to simply load the 15K records and not connect sql server to Jet. 就个人而言,我仍将使用基于客户端的应用程序来简单地加载15K记录,而不将SQL Server连接到Jet。 If I needed more performance, maybe, but not for 15K records daily.
如果我需要更高的性能,也许可以,但是每天不需要15K记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.