Re: ADO Recordset to SQLite
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Mon, 13 Nov 2006 15:09:10 -0000
Thanks, I got the ODBC driver going now and will see if I can do it with INSERT INTO.
I am using this to push data from Interbase to an Access table, so maybe it will work similar with SQLite.
Thanks for the tip about the cache size, will do some experimenting with that.
LR = rs.RecordCount
I know about this and I didn't actually use. I think this came in as RecordCount works in SQLite with the
SQLiteDB dll from TerraInformatica.
While I am at it, what do you use to connect to SQLite? Heard somewhere that the ODBC driver is the one
to go for as it is easy (just use ADO) and fast.
RBS
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message news:%23SfOJGzBHHA.992@xxxxxxxxxxxxxxxxxxxxxxx
What is the fastest way to get data from an Interbase database...
I have this code now, which works well, but is a bit slow:
Because you have not set the CacheSize in the Recordset.
If you are using server-sided cursors, vital.
Try some power of 2 like 256, 512 etc.
140 LR = rs.RecordCount
Waste of time. It will be -1 for a ForwardOnlyCursor. See ADO documentation.
I wonder if I could make a construction with INSERT INTO, so pushing data
directly to SQLite, without making a
Recordset first.
You should be able to. If it is many records, you might want to setup a
Command Object and try with multiple INSERTs, passing parameters. I would
not use a Recordset but if you are going to, client-sided using UpdateBatch
and a command similar to
SELECT * FROM yourtable WHERE 0=1
SELECT fld1,fld2... FROM yourtable WHERE 0=1
The 0=1 is the only way of getting an empty Recordset with all field
infomation present suitable to many AddNews. UpdateBatch will then do
multiple INSERTs
Stephen Howe
.
- Follow-Ups:
- Re: ADO Recordset to SQLite
- From: Stephen Howe
- Re: ADO Recordset to SQLite
- References:
- ADO Recordset to SQLite
- From: RB Smissaert
- Re: ADO Recordset to SQLite
- From: Stephen Howe
- ADO Recordset to SQLite
- Prev by Date: Re: how to find differences between production and test databases
- Next by Date: Re: ADO Recordset to SQLite
- Previous by thread: Re: ADO Recordset to SQLite
- Next by thread: Re: ADO Recordset to SQLite
- Index(es):
Relevant Pages
|