jeddi
02-07-2010, 07:23 AM
Hi,
I do a daily update to my table of about 20,000 records from
an xlm file. this takes about 4 - 5 minutes.
The first thing I do is TRUNCATE the "current" table and then build the new one.
This means that during those 4-5 minutes, no data is available to users.
Rather than working on the "current" table, I am thinking of using a
temporary table to build to and then copy it on top of the "current" table.
I think the copy over ( or over-writing) will be a quicker action than the build.
I am not sure how I should write the query to copy the
"temporary" to the "current" table so that it over-writes all the records.
And while doing the over-write is access blocked to my users ?
(If it is, maybe it is only on a row basis, so would'nt effect anyone ?? )
Would appreciate any help.
Thanks.
.
I do a daily update to my table of about 20,000 records from
an xlm file. this takes about 4 - 5 minutes.
The first thing I do is TRUNCATE the "current" table and then build the new one.
This means that during those 4-5 minutes, no data is available to users.
Rather than working on the "current" table, I am thinking of using a
temporary table to build to and then copy it on top of the "current" table.
I think the copy over ( or over-writing) will be a quicker action than the build.
I am not sure how I should write the query to copy the
"temporary" to the "current" table so that it over-writes all the records.
And while doing the over-write is access blocked to my users ?
(If it is, maybe it is only on a row basis, so would'nt effect anyone ?? )
Would appreciate any help.
Thanks.
.