Click here to Skip to main content
15,790,795 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm going to deploy my project.

In my project there is an sql server database.
How can I deploy my project which will run on every computer which will not have installed an sql server or visual studio?

[edit]SHOUTING removed - OriginalGriff[/edit]
Updated 29-Nov-11 23:05pm
OriginalGriff 30-Nov-11 3:15am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Dalek Dave 30-Nov-11 4:06am    
Edited for Grammar and Readability.

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.

Other than that, create a new "Setup and Deployment" project as part of your solution, and it will handle the hard work.
Share this answer
Dalek Dave 30-Nov-11 4:06am    
Hotdiggity! Good answer.
Do not install SQL Server on each machine.
Install it on central server and access it remotely using connection string. For Tool installation use SetUp and Deployment wizard
check following code.
How can i deploy code using Visual studio[^]
Share this answer
Dalek Dave 30-Nov-11 4:06am    
Good link.

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