Reputation: 365
I have designed an accounts software for my clients. I used SQL Server 2008 database with Stored Procedures. It is developed in Visual Studio 2010, .NET Framework 3.0. I have more than 500 clients using Windows 7.
The major problem is:
Is SQL Server runtime automatically installed with .NET Framework? As MS Access database does not required Office to be installed on client.
I can not installed SQL Server 2008 on each client, it is a tough job. Also the clients are not having a good knowledge of installation process.
How to run SQL Server database on clients without installing its setup on clients? Is there any runtime files or setup?
Upvotes: 16
Views: 55022
Reputation: 125197
Using Visual Studio you can create a setup project and install prerequisites that you need during installation.
The installation process is very simple and the end user can install application and prerequisites after clicking next buttons.
Here are the steps for Creating a Setup Project:
1- Create a c# Windows Forms Application
2- Create a Setup Project
It's that easy.
For more information take a look at following docs articles:
Using Visual Studio another option is using ClickOnce publishing.
To do so, in properties of your project, in publish tab, click prerequisites button, you can select SQL Express in prerequisites. This way, you only need to set your database files to copy in output directory, and use AttachDbFileName in connection string: Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDirectory|\Database.mdf; Initial Catalog=Master"
.
For more information take a look at the following docs article:
Upvotes: 23
Reputation: 16991
LocalDB
is Microsoft's current recommended solution. It allows you to connect to a database file directly, without having to install an instance of the Full SQL Server, or SqlExpress. It is fully compatible with the full version of SQL server. There are no installation requirements on the client end, as the libraries are packages along with your application when it is built.
You can read more about it here.
Upvotes: 5
Reputation: 267
you can instal sql express With silent installation in your setup this way not showing any wizard for install sql express Read this Link
Upvotes: 2