Solved

VB4 problem with the responding time

Posted on 1999-01-24
5
156 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

737 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