Reading a text file makes MDB file huge
From: Sajith (sajkumar_at_yahoo.com)
Date: 07/15/04
- Next message: Vadim Bulat: "Connection string with sa password"
- Previous message: Kevin Yu [MSFT]: "Re: Problem recovering from multiple users updating same row simultaneously"
- Next in thread: Paul Clement: "Re: Reading a text file makes MDB file huge"
- Reply: Paul Clement: "Re: Reading a text file makes MDB file huge"
- Reply: PC: "Re: Reading a text file makes MDB file huge"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Jul 2004 07:11:15 -0700
I am using VB 6, ADO 2.1 and Access 2000 database.
I have a text file with about 50,000 records which are to be entered
into a database. The text
file cannot be exported directly to Access database as I have to do
some error checking on each
line. I am doing the following code for this (pseudo code)
rs1 is a an ADODB.Recordset
'Routine for opening file
do while not eof(filenumber)
read line
call ErrorCheck
rs1.addnew
rs1.fields("Field1")=data1
rs1.fields("Field2")=data2
rs1.update
rs1.updatebatch
loop
rs1.close
The problem is, the MDB file gets huge after this number of
iterations. Am I doing anything
wrong here? Any help will be greatly appreciated.
Sajith
- Next message: Vadim Bulat: "Connection string with sa password"
- Previous message: Kevin Yu [MSFT]: "Re: Problem recovering from multiple users updating same row simultaneously"
- Next in thread: Paul Clement: "Re: Reading a text file makes MDB file huge"
- Reply: Paul Clement: "Re: Reading a text file makes MDB file huge"
- Reply: PC: "Re: Reading a text file makes MDB file huge"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|