We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

Create database if it does not exist

Hello,

Not sure how to use this feature? I have a sql script that creates the database but when i try to test the connection it errors out (maybe because i don't have a database name). I try the same thru management studio and it works. Any help would be appreciated.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Create database if it does not exist

Hello,

I'm not sure why you encountered this behavior.
Please take a look on the How to browse for SQL Servers on the network? article which may be useful to you.
Also, can you please give us more details about the behavior which you had encountered? What error do you get?

EDIT: This may also happens if your sql script code contains the CREATE DATABASE `mydb` statement.
If you have this statement, please delete it, and enable the Create database if it does not exist option. Also, add your database name in the Database field from your connection.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”