Dear all,
I hope one of you will be able to help me out on that one!
One of our client keeps on getting a timeout error when querying its database via our product.
This query is timing out using ADO 2.5 in visual basic 6.0 sp5. The query is forwardonly, readonly which should make it fearly fast. We also use getrows, which may be at the cause of the problem, but we are not sure as we have clients with similar database that have 3,000,000 records and do not have that problem?
He is searching for an document no, document type and a date.
If he is searching by document no, immediate respond and he gets the information back. This number is unique and is indexed.
If he is searching by document type (which obviously would have a lot of duplicates!), with document no, he will get a time out error. Same for the date.
Both Document Type and Date are also indexed?
Document Type seems to be the biggest problem. It is a nvarchar, size 50.
There is only about 800,000 records.
Any ideas on what I can do to get rid of the time out would be great i.e. vb, ado, sql server?? anything advice or tips will be greatly appriciated!
Regards,
Thierry
I hope one of you will be able to help me out on that one!
One of our client keeps on getting a timeout error when querying its database via our product.
This query is timing out using ADO 2.5 in visual basic 6.0 sp5. The query is forwardonly, readonly which should make it fearly fast. We also use getrows, which may be at the cause of the problem, but we are not sure as we have clients with similar database that have 3,000,000 records and do not have that problem?
He is searching for an document no, document type and a date.
If he is searching by document no, immediate respond and he gets the information back. This number is unique and is indexed.
If he is searching by document type (which obviously would have a lot of duplicates!), with document no, he will get a time out error. Same for the date.
Both Document Type and Date are also indexed?
Document Type seems to be the biggest problem. It is a nvarchar, size 50.
There is only about 800,000 records.
Any ideas on what I can do to get rid of the time out would be great i.e. vb, ado, sql server?? anything advice or tips will be greatly appriciated!
Regards,
Thierry