Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I added a setup project to solution. my project has a database that is not a local database (a mdf file) and it is a server file (.\sqlexpress). how can I add this db to setup so my project can use it after installation in new pc?
Posted

You can see this links
Click
Click
 
Share this answer
 
v3
Do you want to install the database on the machine running the installer?

In which case, the machine would need an instance of SQL Server installed to host the database.

How is your installer handling this? Are you detecting SQL Server as a prerequisite to your install?

You basically need to

* Detect SQL Server on install machine?
* If not detected, bootstrap SQL Express Installer
* After install, run SQL script to install your database

After that, your application would be able to connect to the SQL instance and access your database
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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