Re: Batch Updates
- From: "Jeff Howard" <jhoward@xxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 15:36:30 -0700
I figured out in part what is wrong with my sql insert statement! I am using
an ADO connection for my ADOQuery that points to a text driver using a
schema.ini file and this is why this connection is not working with my
Access table for the insert to part of the sql statement. I think I need to
add something like this statement to get it to work but I am unsure of the
syntax.
INSERT INTO Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Data\Delphi\Qbit\CubiScan.mdb
FROM delimited_file.txt
Can anyone verify the syntax for the sql statement on how to insert into an
access table reading from an connection that is built using the text driver?
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> wrote in message
news:6d94125sla4gdqn02o4h3d8oisq93kl4ki@xxxxxxxxxx
Trying to perform some type of batch update using ADO to an AccessNo
database.
Is there a way similiar to the BDE batch move object that can be used in
ADO?
I suggest using an Update query followed by an Insert query
I am currently loading a delimited file into a query and then parsing the
query row by row and using either an insert or edit depending on whether
the
key field already exists to update my ADO table but this process is very
slow. It takes 4 minutes to do this process using ADO and only 10 seconds
to
use the BDE batch move and load it into a paradox table. (apx 65000
records)
Any help here would be much appreicated!
with an update looking like this
update table2 t
inner Join table2a t2
on t.id = t2.id
set t.name = t2.name
and an insert like this
insert into table2
(id, name)
Select id, name from Table2A Where Id not in (select ID from table2)
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Batch Updates
- From: Brian Bushay TeamB
- Re: Batch Updates
- References:
- Batch Updates
- From: Jeff Howard
- Re: Batch Updates
- From: Brian Bushay TeamB
- Batch Updates
- Prev by Date: Re: Batch Updates
- Next by Date: Storing data into a PostgreSQL 8.1 table
- Previous by thread: Re: Batch Updates
- Next by thread: Re: Batch Updates
- Index(es):
Relevant Pages
|