Click here to Skip to main content
15,946,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a windows form application with C#.Net, SQL Server and Crystal Report. Now i want to create an exe file of that application. please help me to do so. I had tried VS 2010 publish wizard but it cannot bind the database files.
Posted
Comments
CHill60 18-Mar-13 7:14am    
Are you trying to copy the entire database to the target machine (unlikely if it's SQL Server), or is this a networked application? Use Improve question link to add details of how you are trying to implement this application
Chiranjib Chowdhury 19-Mar-13 3:16am    
No, this is not a networked app. i want to copy the entire database to the target machine when then user will install the setup.exe of this app.

Firstly you need to be aware that the target machine will need to have SQL Server already installed on it ... unless you are using something like SQLLite, LocalDB, MySql etc etc.

You will need to script something to copy the database across ... have a look at this article Deploy SQL Server databases easily with an Installer class[^]

If you are using one of the smaller footprint sql-lokk-alikes then check the documentation for them to see which files you will need to copy across into your application folder (e.g. for sqllite it's SQLite DLL, and MSVCRT.DLL)
 
Share this answer
 
Automatically .exe file created in windows application but if you want to create setup.exe of your application then go through setup wizard..
 
Share this answer
 
Comments
CHill60 19-Mar-13 5:16am    
... and what about the database?
Braj_12 19-Mar-13 5:26am    
you can create setup.exe to create a package of your application.

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