TMSConnectDialog Database doesnt exist

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
siik
Posts: 10
Joined: Fri 12 Jun 2009 06:10

TMSConnectDialog Database doesnt exist

Post by siik » Tue 15 Sep 2009 08:34

Hi,

trying to solve a problem whereby:

The MSconnect dialog auto populates its user/pass/server/database from inifile or registry as soon as the form is created.

When the user has to change the database the dialog is fine.
However when the user changes the server, the user will then try to change the database but an exception is thrown becuase the current database name does not exists on the new server. How can i get around this?

The exception is:

EMSError: cannot open database 'Test' requested by the login. The login failed.

The login information is correct apart from the database string.

Regards

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 15 Sep 2009 13:11

To solve the problem you should clear an old Database value and after this write a new Database name.

Post Reply