Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old October 20th, 2004, 06:59 PM
hckynt hckynt is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 hckynt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question VB Query Help

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!

Reply With Quote
  #2  
Old October 21st, 2004, 08:54 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VB Query Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway