all groups > sql server odbc > september 2003 >
You're in the

sql server odbc

group:

Append Query From Access Into SQL Server


Append Query From Access Into SQL Server Larry Rosen
9/29/2003 6:36:02 AM
sql server odbc:
I'm running an append query from within Access that
appends 130,000 records into a heavily indexed SQL Server
table. It takes over four hours to complete this query. Is
there a technique to speed up this query, and why does it
Re: Append Query From Access Into SQL Server Bob Pfeiff [MS]
9/29/2003 2:04:28 PM
What else is going on in the SQL Server table when this operation happens?
You could check this by running Profiler in the SQL Server, but the append
query may be inserting the rows one at a time to SQL Server, and if there is
a lot of other activity on the table, the insert(s) could be getting waiting
for other data modification or select operations. The indexes in SQL Server
will have an effect on this operation as well, and depending on what
percentage of the total rows in the table 130,000 rows is, the index
statistics may need be updated after the operation.

You might want to try the same thing using a DTS package in the SQL Server
with simple copy column transformations.

--
Bob
Microsoft Consulting Services
------
This posting is provided AS IS with no warranties, and confers no rights.

AddThis Social Bookmark Button