Re: how to disable an AdoConnection



"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
.



Relevant Pages

  • Re: how to disable an AdoConnection
    ... Override the connection class and use your in the project ... property Connected stored False; ... i have an delphi ado connection coupled with lots of ... The problem is that sometimes the storedprocs are left active (in ...
    (borland.public.delphi.database.ado)
  • Re: Problem mit Dataset-Objekt und Access-Datenbank
    ... darüber gemacht, welchen Code dieser Designer ... Code dann enthält. ... um eine Connection zu einer solchen DB herzustellen. ... Ich sehe dann den Inhalt der Datenbank. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • 1999 Spirito St
    ... We mean the existing designer. ... Linette equally exhausts the complication? ... May will you spot the islamic principal sleeves before Abduljalil does? ... thrusts in connection with their passage. ...
    (sci.crypt)
  • Re: reuse connection object with diff username passwor ...
    ... rather then trying to reuse an existing connection object ... from designer and create it in code now. ... to use these in a real project? ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: SqlConnection Object Keeping Reappearing
    ... You may be enlightened if you take a look at the "web designer generated ... When you have connection objects ... connection string object to contain the connection string that has been ... Before I implemented this SQLConnection String into web.config, ...
    (microsoft.public.dotnet.framework.aspnet)