Page 1 of 1

connection dialog (a bug ?)

Posted: Tue 10 Apr 2012 14:21
by Moondancer
I am using SQL Server 2012 as my database.
In design time I have the option to connect to various server instances on the SQL server (providing i use the correct authentication). However, I do not have the same option at runtime.
When I select the database at design time it stays embedded in the registry (probably) and will not let me choose at run-time. This is very strange and annoying. Unchecking "store log info" from the connection dialog does not help. Why is it that I can not select desired database at runtime ??

Posted: Wed 11 Apr 2012 08:26
by AndreyZ
Hello,

By default, UniDAC connection dialog shows only the servers to which you successfully connected, the server list is stored in the registry. To avoid this problem, you should set the TUniConnectDialog.UseServerHistory property to False. Here is a code example:

Code: Select all

UniConnectDialog.UseServerHistory := False;

Posted: Wed 11 Apr 2012 12:06
by Moondancer
I do not have the TUniConnectDialog.UseServerHistory property .

Posted: Thu 12 Apr 2012 08:08
by AndreyZ
If you use the TUniConnectDialog class, you should use the following code:

Code: Select all

UniConnectDialog.UseServerHistory := False;
If you use the TUniConnection.ConnectDialog property, you should use the following code:

Code: Select all

TUniConnectDialog(UniConnection.ConnectDialog).UseServerHistory := False;