Possible way to connect database to exe

I created a small application using winforms C # that uses SQL Server as a database.

Is there a way to attach the database to an exe file, so I won’t need to install SQL Server on all the machines on which I want to run the program?

+4
source share
5 answers

As far as I know, SQL Server Compact comes into play.

Quote Wikipedia article :

Unlike other editions of Microsoft SQL Server, SQL CE works in the process with the application that hosts it; with a memory capacity of less than 2 MB;

+11
source

in addition to sql server compact, there is also a C # sqlite port that you could use.

+6
source

Have you seen SQL Server Compact ?

This is Zero-config, a single-file version of SQL Server.

+2
source

You can use the SQL Server CD: http://www.microsoft.com/sqlserver/2008/en/us/compact.aspx

or SQLite: http://www.sqlite.org/ - it has a .NET library that you can download and use ... it's pretty fast and compact

+2
source

You can enable it as part of the application installer. See this article.

+1
source

Source: https://habr.com/ru/post/1311222/


All Articles