Cannot open database when running install but test is fine - Advanced Installer Community
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Cannot open database when running install but test is fine

I have set up a SQLServerConnectionDlg in order to capture the SQL server database credentials. I then run a script that creates a table. When I run the installer and give my server and database, I press the Test SQL Connection button which works fine. However when I press next and start the installation I get an error message

[img]
Capture.PNG
Capture.PNG (14.25 KiB) Viewed 4312 times
[/img]

I am not really sure what I am doing wrong. I was following the tutorial in the help file
Configure MS-SQL Server Connection and then
Configuring Databases with SQL Scripts

However I started using the SQLConnectionDlg but switched to the SQLServerConectionDlg as it was much better. In the scripts tutorial I skipped all the ODBC areas and went straight to section 3 (I had already done section 2 in the previous tutorial).

Thanks for your help.
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Cannot open database when running install but test is fine

So I do not know why this happened but I have now fixed it.

Instead of following the tutorial which applies much more to the generic SQL database connection dialog, I started again and simply added the SQLServerConnectionDlg dialog to my dialogs and that itself created all the settings that I needed. I then added my script and ran the build and it worked fine.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot open database when running install but test is fine

Thank you for your feedback.

I'm glad you sorted things out. If there is anything we can further assist you just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”