Re: Export fast, my code slow =[
- From: "Neil" <nospam@xxxxxxxxxx>
- Date: Fri, 29 Jun 2007 20:38:16 GMT
Yes, linked tables make it very easy. But, as Rich pointed out, there might
be some performance hits. But I think if your query is pretty
straightforward, you should get pretty good performance.
Neil
<eselk@xxxxxxxxxxxx> wrote in message
news:1183148617.357481.79810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jun 29, 11:36 am, "Neil" <nos...@xxxxxxxxxx> wrote:
Yes, that is correct: your code is taking much longer because it's
appending
the records one at a time, instead of in batch. Use Insert Into to insert
your tables in batch into the target table. In its simplest incarnation,
it
would be:
INSERT INTO Table2 ( FieldSomething )
SELECT Table1.FieldWhatever
FROM Table1
You can also add a Where statement, or append multiple fields, or
whatever
you need.
Neil
Thanks. I was thinking that would only work if both tables where on
the server, and my problem is getting the data up to the server in the
first place... but I guess that might also work using linked tables.
Also, thanks to all others who replied. Now I have lots of options to
explore! =]
.
- References:
- Export fast, my code slow =[
- From: eselk
- Re: Export fast, my code slow =[
- From: Neil
- Re: Export fast, my code slow =[
- From: eselk
- Export fast, my code slow =[
- Prev by Date: "CREATE TABLE AS" (using ADODB Command Object)
- Next by Date: Re: "CREATE TABLE AS" (using ADODB Command Object)
- Previous by thread: Re: Export fast, my code slow =[
- Next by thread: Re: Export fast, my code slow =[
- Index(es):
Relevant Pages
|
|