Access Data Project Importing CSV File In VBA

后端 未结 4 2068
误落风尘
误落风尘 2020-12-09 01:10

Every now and then I come across a problem with an old system one of my colleagues has developed. They tend to have thousands of lines of code to do a simple thing like impo

4条回答
  •  囚心锁ツ
    2020-12-09 01:23

    BULK INSERT is generally faster, and it will work on an X64 machine. The text driver mentioned above will probably not work in some X64 environments.

    I would reccomend NOT using the format file, it's a lot simpler without it.

    http://msdn.microsoft.com/en-us/library/ms188365.aspx

    BULK INSERT AdventureWorks2008R2.Sales.SalesOrderDetail FROM 'f:\orders\lineitem.tbl' WITH ( FIELDTERMINATOR =' |', ROWTERMINATOR =' |\n' )

提交回复
热议问题