Hello.
I want to achieve the following:
1. The user can select which SQL server it to use (local or remote)
2. If local, then test whether you installed the SQL server on a PC. And, if not installed, offer to install it.
3. The user can choose to create a new database or to connect to the database.
4. If selects the "Create new", it checks whether there is no database with the specified name on the server? And if not, runs the script to create the database I write a connection string in the web.config(xml)
5. If you select "connect to database" then just write a connection string in the web.config(xml)
I tried to modify the standard SQLServerConnectionDlg. Was to add a Radio Button Group (Local server or remote) and Radio Button Group (Create database or connect to the database)
Added a transaction and the script to create the database, a trigger condition if SQLServerConnectionDlg selected "Create database". But for some reason it runs even when is selected "connect to database". This condition I have tried to add to PredefinedConnection. The result is the same.
Please explain how to implement this logic?