Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a C# project which uses a sql database and the database is stored inside the debug folder of my project how to create a set up file so that i can run it on other systems........thanx
Posted

1 solution

Create a new project as part of your solution: a Setup and Deployment project. That will add all the necessary files and build you an installation program for your app.

Do note that this will not (and should not) install SQL server for you - your target machine should have access to it's own instance of that; installation of SQL server is not a normal part of a program installation.
 
Share this answer
 
Comments
Himu from Orissa 22-Nov-11 7:51am    
what about my database
OriginalGriff 22-Nov-11 7:56am    
Move it from the debug folder into the project - and add it as a file. You can then set it's "Copy to output directory" property appropriately, and it can be included in the set up project.
You will have to register it (or get the user to) with SQL server.
Or you could follow this article: http://www.codeproject.com/KB/database/Deploy_your_database.aspx
Sajith Dilhan 23-Nov-11 0:42am    
You can get a backup of your database and using restore database option you can install the database into the client machine

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