Re: Batch Updates
- From: "Jeff Howard" <jhoward@xxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 08:17:56 -0700
I assume that this would need to be two seperate sql statements as I am not
aware of any way to include these two statements into one sql statement?
Thanks for your help I will give this a try!
"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: Maximizing ADO INSERT Performance
- Next by Date: Re: Maximizing ADO INSERT Performance
- Previous by thread: Re: Batch Updates
- Next by thread: Re: Batch Updates
- Index(es):
Relevant Pages
|