connection dialog (a bug ?)

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Moondancer
Posts: 9
Joined: Tue 10 Apr 2012 14:07

connection dialog (a bug ?)

Post by Moondancer » Tue 10 Apr 2012 14:21

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 ??

AndreyZ

Post by AndreyZ » Wed 11 Apr 2012 08:26

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;

Moondancer
Posts: 9
Joined: Tue 10 Apr 2012 14:07

Post by Moondancer » Wed 11 Apr 2012 12:06

I do not have the TUniConnectDialog.UseServerHistory property .

AndreyZ

Post by AndreyZ » Thu 12 Apr 2012 08:08

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;

Post Reply