Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Query Execution Time

Author  Topic 

tstuart
Starting Member

2 Posts

Posted - 2007-03-21 : 09:46:39
A query that runs in a second or so in Query Analyzer requires 20 seconds in a linked Access Project.

What's the secret of MS_Access poor performance, and can it be improved?

Tom Stuart

X002548
Not Just a Number

15586 Posts

Posted - 2007-03-21 : 09:50:42
can the avenue of possibilities be any more wide open? We need specifics...


But, I'll take Network for 200 Alex

And why aren't you using stored procedures

And, are all you controls bound?





Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

tstuart
Starting Member

2 Posts

Posted - 2007-03-21 : 13:38:29
quote:

And why aren't you using stored procedures

And, are all you controls bound?


Thanks for stepping up. I use simple queries when they will suffice because the staff I serve is familiar with them and can modify them.

However, I would be grateful for a comparative assessment of the appropriateness of stored procedures.

No forms involved, which is what I assume you mean with the reference to bound controls.

Here is the very simple SQL:
quote:

SELECT CASNumber, MAX(ObservedResult) AS [VP Calculated]
FROM dbo.AnalyticalResults
WHERE (AnalyticalProcedure = N'VPC')
GROUP BY CASNumber

Several similar (differing only in the constant, N'VPC') queries always complete promptly, whether from the Access ADP or from Query Analyzer, while this one takes 20 seconds about 90% of the time and 1 second 10% of the time. I just picked up this latter variance today. The traffic on the SQL Server 2000 is minimal. The Access version is 2003.
Go to Top of Page
   

- Advertisement -