Re: how to disable an AdoConnection



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?


.



Relevant Pages

  • Re: how to disable an AdoConnection
    ... TAdoStoredProcs. ... The problem is that sometimes the storedprocs are left active (in ... designer) by me or other components. ... Ensure Connected is false and clear the connection string before saving the project. ...
    (borland.public.delphi.database.ado)
  • Re: ADOConnection Question
    ... Property Connected Stored False; ... This forces you to assign the connection string at run-time before the ... Another reason I do not store the connection string is for security reasons. ... are different than the production server, the app throws an error when it ...
    (borland.public.delphi.database.ado)