Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created c# windows application in visual studio 2012 for temple management and database created in sql server 2008. how to make .Exe format with database ????
Please help me :(
Posted

1 solution

You don't - you create a new Setup and Deployment Project in Visual Studio and it sorts out the dependencies.
See here: Google "application deployment VS 2012"[^]

But do note that you should not include SQL Server in your installation. There are a couple of reasons:
0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.
1) They may already have SQL Server installed on the network. If so, then they will presumably want to use that version.
2) If they do have SQL server installed and you start proliferating SQL server Express instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of SQl Server is a lot more likely to be backed up than a number of scattered version under user control.
4) Sql server is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using Sql Server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of SQL server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.
 
Share this answer
 
Comments
Abhishek Pant 16-Jun-15 1:20am    
5'ed
jaishwin 16-Jun-15 1:22am    
i tried many methods but not working tell me clearly plzzzz
OriginalGriff 16-Jun-15 1:45am    
Follow the links, read a few documents.
This isn't a singlie solution "do this" problem! It's one where you have to make a decision based on your application and the available solutions.
jaishwin 17-Jun-15 0:41am    
Can i Give My Project Can u Make Setup File Please ?????????
OriginalGriff 17-Jun-15 4:39am    
I don't think you would like my rates for an urgent job - and given that I don't know you there would be delays because I'd need to get cleared payment in advance of starting any work. :laugh:
If you can't do it yourself, try Freelancer.com - but be aware: you get what you pay for. Pay peanuts, get monkeys.

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