Re: how to disable an AdoConnection
- From: "A Pham" <apham@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 09:14:15 -0400
Override the connection class and use your in the project
Something like
TMyConnection = class(TADOConnection)
published
property Connected stored False;
end;
"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?
.
- References:
- how to disable an AdoConnection
- From: Gabriel
- how to disable an AdoConnection
- Prev by Date: Re: how to disable an AdoConnection
- Previous by thread: Re: how to disable an AdoConnection
- Index(es):
Relevant Pages
|