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 ??
connection dialog (a bug ?)
-
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:
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
-
AndreyZ
If you use the TUniConnectDialog class, you should use the following code:If you use the TUniConnection.ConnectDialog property, you should use the following code:
Code: Select all
UniConnectDialog.UseServerHistory := False;Code: Select all
TUniConnectDialog(UniConnection.ConnectDialog).UseServerHistory := False;