• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Install SQL database with all the objects though another program

Hello,
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?
0
arcross
Asked:
arcross
1 Solution
 
DhaestCommented:
Walkthrough: Using a Custom Action to Create a Database at Installation
http://msdn.microsoft.com/en-us/library/49b92ztk.aspx#Mtps_DropDownFilterText
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now