Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serverless Database in C#

Tags:

c#

database

Complete newbie question here: I'm just playing with C# for the first time and want to make a Windows Forms application which stores some info in a database structure, but obviously don't want to require something like MySQL to be installed on each client's computer. How do I go about this?

like image 573
nickf Avatar asked Jun 09 '09 08:06

nickf


2 Answers

You can use SQLite. It doesn't require any installation or server on the client's computers. Here is an blog describing how to use it with .NET. It is easy to use, just add a reference to the System.Data.SQLite.dll.

Here is an open source data provider for .NET: System.Data.SQLite

From homepage: "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain."

like image 100
BengtBe Avatar answered Oct 04 '22 22:10

BengtBe


You use a database that doesn't require an install. There are a few out there - there's Microsoft SQL Server Compact, which frankly is badly named, as it won't support the more useful SQL functions like stored procedures, views and so on. There's also VistaDB which does support stored procs, but requires purchase if you want Visual Studio plugins.

like image 26
blowdart Avatar answered Oct 04 '22 22:10

blowdart