Print Page | Close Window

Multiple queries and database connections

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6281
Printed Date: 30 March 2026 at 3:35pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Multiple queries and database connections
Posted By: SeaWolf
Subject: Multiple queries and database connections
Date Posted: 09 October 2003 at 8:17am

Hi,

Here is the scenario:
I'm passing ReportNum as a QueryString.  I use ReportNum to Query an Access table to that returns 1 CallID.

I then want to use the CallID to query a SQL table for the data.

It seems that the SQL query is running before the Access query thus the SQL query doesn't know what CallID should be.

I'm using the Database results wizard in FrontPage.  The Access query is above the SQL query in the code.  Is there a way to force the Access code to run first.  Any suggestions are appreciated.

Thanks in advance!




Replies:
Posted By: Scott07
Date Posted: 18 October 2003 at 3:13pm

If your using ado there is a command which you can use to extend the time it will wait for an answer from the database, this may not work but its worth a shot seeing as its only one line.  I cant remember what it is exactly cause i have lost my asp book (shows you how often I use it!) but its something like

connection.connectiontimeout = ###

you will have to look it up on the net somewhere to see how you put it and where you put it in cause i havent been doing any web programing for a couple of months, i think i am logsing my touch!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net