Install SQL database with all the objects though another program

Posted on 2009-04-16
Last Modified: 2012-05-06
Im creating an installation package using the Setup And Deployment that comes with visual studio.
But i need to create a database if it is not there and install it. Ive got all the scripts to do this in a .sql file that i created using SQL server express.

My question is how can i execute this after installation of my application?
I though of creating another exe file and execute it automatically after the installation. This exe program would, then, execute the sql script.

but im not sure about that. Any ideas on this?
Question by:arcross
    1 Comment
    LVL 53

    Accepted Solution

    Walkthrough: Using a Custom Action to Create a Database at Installation

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now