Unix Technical Forum

Append Query From Access Into SQL Server

This is a discussion on Append Query From Access Into SQL Server within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I'm running an append query from within Access that appends 130,000 records into a heavily indexed SQL Server table. ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:26 PM
Larry Rosen
 
Posts: n/a
Default Append Query From Access Into SQL Server

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
take so long?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:26 PM
Bob Pfeiff [MS]
 
Posts: n/a
Default Re: Append Query From Access Into SQL Server

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com