Connection active in IDE

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
formi
Posts: 39
Joined: Thu 17 Apr 2008 13:01

Connection active in IDE

Post by formi » Mon 29 Apr 2013 07:01

Hi

I have the following problem: I configure the properties from the connection at runtime (Server, Username, databasename ...) because it can be different by every customer. When the connection is active in the IDE, I compile and rollout this version, I get an error that i.e. the server is unknown when the application is startet by the customer. That's why the connection is set to active when the form (containing the connection) is created. Have I some possibilities to avoid this? (I know I can set active to false before compiling. But because it is set automatically to active when I open and close a table I often forget to set it to false ...)

Kind regards, Peter

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Connection active in IDE

Post by AlexP » Mon 29 Apr 2013 07:30

Hello,

In order to make a connection set in design-time not to open in runtime, you should set the KeepDesignConnected property to False:

Code: Select all

UniConnection1.Options.KeepDesignConnected := False;

formi
Posts: 39
Joined: Thu 17 Apr 2008 13:01

Re: Connection active in IDE

Post by formi » Mon 29 Apr 2013 07:59

That's it, thanks!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Connection active in IDE

Post by AlexP » Mon 29 Apr 2013 08:10

Hello,

Glad to see that the problem was solved. If you have any other questions, feel free to contact us.

Post Reply