Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i made windows form application in c# and
database exist in SQL server r2 2008.
how i create .exe file of the project with included my database file also.
Posted
Comments
Sergey Alexandrovich Kryukov 9-Sep-13 1:51am    
Not clear. Do you mean installation/deployment? Do you understand that SQL server is based on client-server technology?
—SA
Muhammad Kashif Saleem 9-Sep-13 2:17am    
yes i mean to deployment
Sergey Alexandrovich Kryukov 9-Sep-13 2:53am    
Then you should not ask "how to make an exe" (isn't it obvious), but ask about deployment. You may need to create a setup project. I would recommend WiX.
—SA
Bama Boy 18-Oct-13 8:55am    
sir i also want make asp.net windows application's .exe with database ..did u get solution ????

It depends on what you're planning to do. If you want to have the database directly embedded in your application, without any external server, you may consider the option of using SQLite (http://www.sqlite.org/[^]). You can deploy one preconfigured database file with your application.

If your intention is to carry in oyur application the initial configuration for the database then it depends on the database server. In this case you could make a backup that generates the scripts for reproducing the database so you're able to execute it on the new installation at first run or during installation.
 
Share this answer
 

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