Re: how to disable an AdoConnection
- From: "Andrew" <abaylis_nos@xxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 18:57:56 +1000
"Gabriel" <tdrgabi@xxxxxxxxx> wrote in message news:44bb2146@xxxxxxxxxxxxxxxxxxxxxxxxx
HI, i have an delphi ado connection coupled with lots of
TAdoStoredProcs.
The problem is that sometimes the storedprocs are left active (in
designer) by me or other components.
when i deploy the application, to other clients, before i can even try
to set the new server and password the stored procs are trying to
connect to the old one ... resulting in a harmless but irritating
error.
i tryied to stop TAdoConnection to automatically connect until i let it
with BefforeConnect event ,
do you know any way of stoping it from connecting? maybe a flag or
something .. did u had the same problem?
Ensure Connected is false and clear the connection string before saving the project. If you only set these properties in code, you'll have no problems.
Andrew
.
- References:
- how to disable an AdoConnection
- From: Gabriel
- how to disable an AdoConnection
- Prev by Date: how to disable an AdoConnection
- Next by Date: Re: how to disable an AdoConnection
- Previous by thread: how to disable an AdoConnection
- Next by thread: Re: how to disable an AdoConnection
- Index(es):
Relevant Pages
|