简体   繁体   中英

C# Sql-server on every client

I want to build an application that needs a sql database on every machine that uses the application.

Isn't it true that Chrome and Firefox store cookies in a SQL database? I did not remember installing anything like a SQL server while installing Chrome, so my question is: does every user has to install a SQL Server if my app uses one?

The best thing for your purpose is to use database servers, which will be started with your application, like SQLite or Sql Server Compact. That means, you application host the database it self and you have access over ADO.Net. This is a very smart kind of storing local data and very easy.

Do not try to install complex database systems like mssql, sybase or mysql on every client.

For example, SQLite can be delivered with a few assemblies in your product.

This answers gives a nice overview: Lightweight SQL database which doesn't require installation

In order to store information for a client application, you can use SQL Server Compact , or some other solution, like SQLite (with a library to access it).

There are other alternatives, but these two are the most common and stable.

It's true that Firefox stores cookies in a sqlite database. However, that's not the same thing as SQL Server.

If your app needs to communicate with a database, you can a) bundle a sqlite database with it, b) require an existing database on startup (Wordpress does this; you can pass it details for a mysql database to get it to use an existing installation), or c) bundle a full database (like SQL Server Compact) with your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM