Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create setup file to install SQL Server Database along with my application which is in c#(vs2005) .net 2.0
Posted

1 solution

there are also third party installation package managers, which allow you to do so. the one i recommend is "Install Shield", you must have seen a large verity of software, even your driver packages are made using install Shield.

if you are making a custom installation package then you have to create query file of your database eg testsql.sql,
program a .bat file with following lines

SQLCMD -S "%1" -i C:\testsql.sql

in your installation package, execute that .bat file after/before installation as you require.

but in both cases, SQL client/server must be pre-installed on system, so the catalog can be made on the running instance
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900