BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PRBLM: Multi-ADO connections on one DataModule

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Kelvin Taite
Guest





PostPosted: Wed Aug 18, 2004 1:38 pm    Post subject: PRBLM: Multi-ADO connections on one DataModule Reply with quote



Using Delphi 7

I have an application which analyzes data from one SQL server into another
SQL server. To achieve this I have 2 ADO connections which I open at
runtime.

What happens now is the application will report that I am unable to connect
to the second ADO due to Server not found or Invalid password. It makes no
difference which connection is the first to start, the second will always
fail. Both connections use the same userid. At Design time both connect
until I try to run the app.

Anyone else run into this one? Any ideas?

Kelvin Taite
Provincial Airlines Ltd


Back to top
Del Murray
Guest





PostPosted: Wed Aug 18, 2004 10:15 pm    Post subject: Re: PRBLM: Multi-ADO connections on one DataModule Reply with quote



When you compile the final version of your program, do you make sure that
the "connected" property is set to false in the tADOConnection object ?
Sometimes it can get set to true when fiddleing arround in a dataset that is
using the connection. The failure is then reported because at runtime the
program tries to connect to your test database, which isn't available. ...
Just a guess though


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.