Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2000, 07:02 AM
N/A
Guest
 
Posts: n/a
Default Multiple DB Connections with ISAPI DLLs

Trying my hardest to provide the ability to connect to varying databases through the BDE within an ISAPI DLL.

Problem im having is that once connected through the browser in one request then I attempt to run SQL operations with following requests, I lose connection to that DB because another browser using another thread has taken that connection up.

I know it is a question of synchronising threads but does anyone know a way round this????
Reply With Quote
  #2  
Old 11-17-2000, 07:03 AM
N/A
Guest
 
Posts: n/a
Default RE: Multiple DB Connections with ISAPI DLLs

Have you included a TSession component on your
datamodule and set AutoSessionName to True?

See the TI on the Borland community site for more
info on using BDE and ISAPI...
Reply With Quote
  #3  
Old 11-17-2000, 07:30 AM
N/A
Guest
 
Posts: n/a
Default RE: RE: Multiple DB Connections with ISAPI DLLs

The problem I have there in one attempt is that I have a TSession and I have two database components. Now I know that a database requires its own session on a form so i dynamically create the second lot of sessions with no owner which gets round the AutoSessionName problem. But still I can't seem to sync the databases with the right request???????

Do u think using the session name would help me sync up the request to the right Database Session, thread whatever????
Reply With Quote
  #4  
Old 11-17-2000, 07:45 AM
N/A
Guest
 
Posts: n/a
Default RE: RE: RE: Multiple DB Connections with ISAPI DLLs

Why not have two session components?
Reply With Quote
  #5  
Old 11-19-2000, 11:23 PM
N/A
Guest
 
Posts: n/a
Default RE: RE: RE: RE: Multiple DB Connections with ISAPI DLLs

Because you can only have one session on while Autosessionnames is set to true
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.