include sql enterprise in setup project? - c#

include sql enterprise in setup project?
how to include sql enterprise when it's not appear in prerequisites of the setup project
and if it's not possible do i have install the full enterprise edition on the client machine?
i use visual studio 2010 and sql enterprise 2008.
i'm a database beginner and i always used to use sql express edition but now data base getting grow fast and the limitations of the sql express for 4gb make a big problem so any help i will be grateful

Microsoft SQL Enterprise edition follows and uses it's own License, you need to install it through the Web or offline Setup only.
It's a paid licence product, witch Express and Compact Editions are not, and this last two editions are the ones that you can pack with your application as their licenses allow you to do so.
You can always use a file that can run on a database to populate with records, or use, for example, Windows SQL Azure to have a centered database and Export / Import your schema with data.

Related

How to create a installer for C# windows application with SQL Server database integrated

I have a C# application that I want to install on my clients computers. It has a SQL Server database connection so that it can store data. I want to create a installer so than I can install the app on clients computer.
So far I tried Installer shield and advanced installer and I could not manage to pull it off.
NOTE: I can't install Microsoft SQL Server Management Studio on clients computer due to toughness.
NOTE: I'm using Visual Studio 2019 with Microsoft SQL Server Management Studio 2017 and .NET 4.5 and DevExpress and because I'm using DevExpress I have some reference files to copy to client directory.
If the users are not sharing their data with one another, you don't need SQL Server to begin with. There are other data storage options, ones that don't require an enterprise grade client-server database.
Your app can use a local database such as SQLite. You can use files - JSON or XML allow for easy parsing from C#.

What database should I choose for prerequisites?

I have a C# project that I want create a setup for. I use Advanced Installer.
I use SQL Server 2017 Express for creating instance of my database. Now when I want to choose "Prerequisites", I have 2 options:
SQL Server 2017 Express
SQL Server 2017 Express Local DB
What should I choose, and what's the difference?
SQL Server Express LocalDB: This edition is mainly used as a development tool. It is a lighter version of Express that runs as a local app. It does support all the main programmability features of the other editions.
The big advantage of LocalDB for developers is that it allows them to create a local environment that is much easier to install and manage. Users can just start up an instance of LocalDB runtime as they need it and do not need to install a service.
For details, please check the SQL Server Express LocalDB article.

Deploy application using installshield

I have developed an WPF application using .Net 4.0 framework. I have installed SQL 2012 Express edition on my machine .
My application performs basic CRUD operations on this database using appropriate connectionstring. I am very new to deployment. so my question is How can I deploy my mdf files at the client end ? I cannot install ~130MB of software at client end just for my 4MB of mdf files it doesn't make sense. Also while deploying project I saw this pre-requisites screen
My questions are:
(I think if i check SQL Server 2008 Express SP1 it will download it at client end) But I have SQL 2012 Express Edition Installed so how can I go with it ?.
Also is it possible If I give client seperate exe of my SQL 2012 Express edition ? (There is no need for management studio at clientside.so what should be given to client so it that installs only those software which are required to run .mdf file )
To answer your first question,
1. You will require a .prq file for SQL server 2012. Either you can create it or you can download it from web. You can add/edit '.prq' file from 'Redistributable' section.
For your second question,
2. You can pass the setup of aql 2012 express to your client with specific instructions to only install server and not the management studio.
You need SQL Server Compact most probably

How to deploy application to many users

I have got a C# .NET application which uses an SQL Server 2008 R2 database.
I have no problem deploying the actual application to multiple PCs, however I am having a whole world of trouble deploying the database. The application is going to be used by a large amount of users - it can be downloaded and installed by anyone. My problem is that the application uses a connection string to connect to the database.
How am I going to include the database as part of the installation using the Visual Studio publish tool, and make sure that it will work on any installation with the same connection string.
I have spent a long time searching, and have tried out many potential solutions, including this, however in the latter particular case, the application could not find the database when it was deployed.
As per your given SQL connection, it seems your are using Sql Server Express edition, to bundle express edition with your application, here are the options,
Add SQL Server Expression edition setup in your installation media, and invoke setup.exe through your setup program
Or you can use Web Platform Installer
Or you can simply check in your setup program, whether desired SQL Server Express Edition is installed, if NOT then display the message to user that "Please install the Sql Server Express Edition", and guide how he/she can install, for example providing a download link
Or you can go with Sql Server Compact Edition which is a light weight version and I think only few DLLs are required to make it functional on end user's PC.
For more information:
Sql Server Express Edition:
http://blogs.msdn.com/b/user_ed/archive/2012/12/09/how-to-embed-sql-server-express-in-an-application.aspx
Sql Server Compact Edition:
https://msdn.microsoft.com/en-us/library/aa983326(v=vs.140).aspx

Publish C# project with database

I'm currently learning C# with Visual Studio 2013 and planning to write an application with Database. There i have some questions:
What's the best database to publish with my application to
friends/customers? The database won't be too big. And every user
should use his own database.
How do i publish my application with the database and make an installer from it? I want to give customers a setup.exe that they can install. With everything they need, i.e. .net, database, etc
Thanks in advance
Here is a good SQL Comparison Table that shows what you can and can't have with different options (SQL Server Express, Local DB, SQL Server Compact / CE).
You probably want SQL CE so you can bundle up an actual database file with your installer.
As for the installer, you'll need to create a Bootstrapper which will contain your installer + other installers you require + your database that you're releasing (assuming you mean a pre-populated database?).
MS SQL Server Compact edition would be a good choice. It's free and redistributable with Your application. No extra installation needed. http://www.microsoft.com/de-de/download/details.aspx?id=17876
For really small databases, you could use sqlite.
Otherwise, I'd suggest using MS SQL Server, it has a free Express edition. I don't think attaching another install.exe would cause problems.

Categories

Resources