Re: how to disable an AdoConnection




"Gabriel" <tdrgabi@xxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
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?
Assign server and password in BefforeConnect event and you will be ok.


.



Relevant Pages

  • how to disable an AdoConnection
    ... 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. ...
    (borland.public.delphi.database.ado)
  • stop delphi TAdoConnection from conecting
    ... 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. ...
    (borland.public.delphi.database.ado)