Solved

VB4 problem with the responding time

Posted on 1999-01-24
5
152 Views
Last Modified: 2010-05-03
i have some problem with my new application where a work
we are in 16 bits systeme and when have a sql query we have a responding time about sometime 5 to 10  minutes !!!
How i can solve this problem????
0
Comment
Question by:cpouliot
5 Comments
 

Author Comment

by:cpouliot
ID: 1470421
Edited text of question
0
 
LVL 4

Expert Comment

by:mcix
ID: 1470422
What type of database is it?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1470423
There are a lot of things that can cause long queries. Different database run at different speeds. The queries can be malformed and require too much searching. The database nay not be indexed. The host may be overloaded, the LAN may be saturated, the workstation may not have enough RAM, even the LAN cable can be marginal causing excessive retries. Give us a little more about your configuration, type of database, number of records, etc. and we'll be able to narrow it down.

M

0
 
LVL 2

Accepted Solution

by:
FlorisMK earned 100 total points
ID: 1470424
One of my colleagues had a very complex query in Access 2.0. Progress remained at 0% for minutes. He asked if performance could be improved. I gave him the following tip, resulting in a performance of 20 sec.

Check the SQL code.
Remove any instance of the word "DISTINCTROW".
This will probably improve performance thousandfold.
(You only need DISTINCTROW if the underlying tables have no primary key or other unique index defined.)
0
 

Author Comment

by:cpouliot
ID: 1470425
thank s body 100 pnts for you
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now