How do I insert 800000 records into an MS Access table?

前端 未结 16 1034
故里飘歌
故里飘歌 2020-12-17 04:13

I need to insert 800000 records into an MS Access table. I am using Delphi 2007 and the TAdoXxxx components. The table contains some integer fields, one float f

16条回答
  •  -上瘾入骨i
    2020-12-17 04:44

    I would prefill the database, and hand them the file itself, rather than filling an existing (but empty) database.

    If the data you have to fill changes, then keep an ODBC access database (MDB file) synchronized on the server using a bit of code to see changes in the main database and copy them to the access database.

    When the user requests a new database zip up the MDB, transfer it to them, and open it.

    Alternately, you may be able to find code that opens and inserts data into databases directly.

    Alternately, alternately, you may be able to find another format (other than csv) which access can import that is faster.

    -Adam

提交回复
热议问题