starlancer
Posts: 1
Joined: Mon Dec 23, 2019 12:43 pm

Problems creating database while installing

Hi.
I'm from Argentina. Sorry for may bad english, I hope you undestand me.
When I start installing my apllication in a notebook with Windows 7, all procedures work fine. Install SQK Server fine. Then, after close the last window of the SQL Server installer, continue with my application installer but when must create my database and tables, the message "ODBC timeout" appears.
I try almost all versions of SQL and no one work. Please, do you any advice to solve my problem?

Again, appologies for my bad english.
Thank you for any help and happy holidays to all of you.

starlancer (Diego) :)
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Problems creating database while installing

Hello Diego and welcome to Advanced Installer forums,

Please keep in mind that before creating a database, you will first need to connect to the server.

Since you are using SQL Server, you can use our predefined "SQLServerConnectionDlg" dialog. This dialog will automatically configure everything you need to connect to an SQL Server instance (these changes can be seen in the "SQL Databases" page).

In order to add this dialog to your project, you can go to "Dialogs" page --> select "WelcomeDlg" and then press on the "Add Dialog" button from the toolbar.
SQLServer.png
SQLServer.png (167.98 KiB) Viewed 1110 times
One important thing here is where the server is located. Most probably, since you are installing it with your setup, the server will be located on the local machine. Therefore, the server search should be done on local machine. To do so, please go to "SQL Databases" page --> select "DlgServerBrowse" from under "SQL Server Browse" and change the "Browse type" to "Local SQL Browse".
SQLServerBrowse.png
SQLServerBrowse.png (140.82 KiB) Viewed 1110 times
Another important thing here is the fact that, as you can notice, in the newly added dialog, there is a "Database" field. In that field, the user should enter the database name that you want to connect to. In addition to that, if a database name is entered and there is no database with that name, the database will be created in the SQL instance.

Therefore, you can create a database in the dialog and then create the tables using either SQL Scripts/Queries in that database.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”