Hi all,
I have an application built through MS Access 2003 with linked tables to a SQL Server 2005 db. My question revolves around a delete query that is taking a very long time to process.
The table in question has about 5.6 million rows.
I use a vba docmd.runsql statement which goes something like this
"Delete from table where date = #4/13/2010# and company = '0515';"
The delete query will delete multiple rows.
The table contains indexes on date and company and a couple other fields as well but it's still taking a long time to process.
Im wondering if it's ODBC that is slowing it down or if there is something else I can check.
Im also wondering if it would be faster to use a passthrough query to perform the delete and pass the sql statement programatically.
Any thoughts?
I have an application built through MS Access 2003 with linked tables to a SQL Server 2005 db. My question revolves around a delete query that is taking a very long time to process.
The table in question has about 5.6 million rows.
I use a vba docmd.runsql statement which goes something like this
"Delete from table where date = #4/13/2010# and company = '0515';"
The delete query will delete multiple rows.
The table contains indexes on date and company and a couple other fields as well but it's still taking a long time to process.
Im wondering if it's ODBC that is slowing it down or if there is something else I can check.
Im also wondering if it would be faster to use a passthrough query to perform the delete and pass the sql statement programatically.
Any thoughts?