Solved

VB4 problem with the responding time

Posted on 1999-01-24
5
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

687 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