[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Database server instance deployment with application setup

Posted on 2012-08-14
Medium Priority
Last Modified: 2012-08-14

I am interested in deploying a database with my set up programs. I have a few ideas for .net applications and Java applications, however I seem to meet the same problem every time. I am guessing that I am missing something obvious, but I was wondering if someone could point me in the right direction.

What I would like to do is, if the database does not exist on the PC it will automatically set up a database server instance, create the database and restore a database schema to the database, as part of the set up process. I want to make this as painless as possible for the user.

I am open to suggestions on database type, however I am looking for no or very low cost.

This seems like such a fundamental thing, that I must be missing something obvious.

I will consider a successful answer to be :
A link to a useful tutorial on how to do this, or
A database type, and a command line/.net/other tool to achieve the process described above.

The crucial thing is that the user must not have to do any more than perhaps click "Next" and "Finish", but the preference would be completely silent installation.

Thanks in advance,

Question by:philkeene
  • 2
  • 2

Accepted Solution

comnuts earned 1000 total points
ID: 38291258
Microsoft SQL Express can be installed via command line where you can set it to install unattended by working thru the setup parameters in MSDN. Once the SQL is installed, you can have it to run T-SQL scripts to re-create the database you need. A tutorial is available at this address:


Derek has some great articles on SQL unattended installation with install scripts on his blog.

LVL 86

Assisted Solution

CEHJ earned 1000 total points
ID: 38291269

Author Closing Comment

ID: 38291280
Thanks to you both, these are great. I will let you know if I have any further questions (but obviously post a new question if necessary).
LVL 86

Expert Comment

ID: 38291464
Of course, there is no setup involved in the JavaDB approach. If there is already a VM, you have zero-install. If you don't, you can automate install via Java Web Start

Author Comment

ID: 38293200
Thanks for the clarification CEHJ, it certainly looks like the best option for Java applications...

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we’ll look at how to deploy ProxySQL.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month18 days, 22 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question