|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Greetings.
I have created an ODBC connection from my webserver to an Informix database. I am using VB on ASP pages to execute queries and produce either PDF, TXT, or HTML output. My server script timeout is set to 200. Problem: When writing queries that access three or more tables, the scripts time-out. I am not an expert with VB, Informix, or ASP but have gotten simple queries to work fine. Question: For more complex queries, can I somehow pass one query result to another query, thus breaking up a large, complex query into small parts that execute in sequence? Is there something else I could try to make these queries run more efficiently? Thanks for all your help! |
|
#2
|
|||
|
|||
|
Why don try to change the connection timeout to a large value
Conn.CommandTimeout = 2000000 Conn.ConnectionTimeout = 2000000 Another thing that you should consider is that if you put in a query ALL the parameters in the INDEX KEY the query goes faster. For example if you have an index that you specify the company and it's the same for all records, you may be tented not to put it in the query, and as result the query will be a lot slower (incredible slower), because will think that there are several companies on the table. ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > VB Query Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|