Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Multiple queries and database connections
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple queries and database connections

 Post Reply Post Reply
Author
SeaWolf View Drop Down
Newbie
Newbie
Avatar

Joined: 09 October 2003
Location: Canada
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote SeaWolf Quote  Post ReplyReply Direct Link To This Post Topic: Multiple queries and database connections
    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!

Back to Top
Scott07 View Drop Down
Groupie
Groupie


Joined: 04 July 2002
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott07 Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.