Click here to Skip to main content
15,512,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear expert,
I am doing a windows application using visual studio 2012, C# 4.0 and sql server management 2012. I am on the verge of completing the project but I am not able to deploy the same on client machine??
I want to know step by step procedure about how to deploy on client machine...??
do I need to install sql server management in client system?? my client has windows vista?? so do need to take sql server management studio 2008???
please help bcoz I m not understanding how to go about it...
Posted

1 solution

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.

If you application needs multiuser DB access then you need someone at the client end who knows how to work with SQL server (or you will end up with a lot of support calls which aren't your problem) - if it only needs single user access then you shouldn't use SQL server at all! SqLite, SQLCE, or even Access are better solutions.

Other than that, use VS to add a Setup and Deployment project to your app, and that will take care of the "donkey work" of installing everything your app needs to run. Be aware that Vista did not come with .NET 4 as standard, so you will need a proper installer to ensure it is installed before you app will run.
 
Share this answer
 
Comments
keyur tandel 4-Apr-15 5:55am    
I want to install in single client machine...sql server is not install on that machine...I need to submit my project soon...so i cant do in sqlite or sqlce as i have already done database liking..please suggest method to deploy using sql server
OriginalGriff 4-Apr-15 6:11am    
Don't.
It is a lot easier to change your application to use OdbcConnection instead of SQlConnection etc., and change your references to use the Access engine than it is to install SQL Server if you don't know what you are doing! I have to follow installation guides on the internet every time I do it and I do know what I'm doing! :laugh:

Do you really think your project is going to be impressive if you install a tiny (less than 100K EXE file) and then need a 400+Mb download and a half hour installation to support it?

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