faster way to write tables?
- From: "Allen" <anugent@xxxxxxxxxxxxxx>
- Date: 19 Feb 2008 21:41:16 -0700
I'm building a large lookup table by using an ADOCommand, repetetively setting the CommandText (and invoking Execute) in a loop for each row. The CommandText string looks something like:
SELECT INTO out_table (col1, col2, col3) VALUES (x1, x2, x3)
It works, but it groans a bit when there are ~50,000 records; I wouldn't want to use this method for one million records.
Is there something I can do to speed up output, like buffering the command strings to SQL Server?
.
- Follow-Ups:
- Re: faster way to write tables?
- From: Paul Scott
- Re: faster way to write tables?
- From: Martijn Tonies
- Re: faster way to write tables?
- Prev by Date: Re: Cant trap Exception.
- Next by Date: Re: faster way to write tables?
- Previous by thread: Cant trap Exception.
- Next by thread: Re: faster way to write tables?
- Index(es):