Good embedded database solution (like SQLite) for .Net
Asked Answered
G

5

7

I am looking for file based storage solutions that I can use with a .Net project. THey need to have a sql-like interface for storing and retrieving data. They need to have relatively little overhead and must not require any additional components installed by the end user. I am hopping for a .dll that I can reference and use. Cool points awarded if it is closely tied to an ORM.

My current favourite is SQLite, are there any better ones out there that I should know about?

I have a (health?) bias against access because I feel it is overcomplicated for what I need, I am open to being convinced otherwise though.

PS: "No, there is nothing better than SQLite" is a perfectly good answer.

Godfree answered 16/5, 2010 at 0:22 Comment(0)
B
8

The only other option I have any experience with is Microsoft SQL Server Compact if you don't want to install anything on the user side. SQL Server Express works as well if you did want to install something. It really all has to do with what features you want to have in your embedded database.

The one advantage of SQL Compact is that when its on a local drive i.e. not on a network drive it natively supports multiple connections. If you want it to write to a database on a network drive though you'll have problems with it. From your brief description it sounds like SQL Compact is what you want. If you have more specific requirements the answer might be different.

Biology answered 16/5, 2010 at 0:50 Comment(1)
This seems to have many features I would like, and I can reuse the same code to talk to both SQL Server and SQL Server CE. Thanks!Godfree
C
2

You can also check Firebird who has good dotnet driver

The embedded version is an amazing variation of the server. It is a fully featured Firebird server packed in just a few files.

dotnet driver here

Coomer answered 16/5, 2010 at 9:21 Comment(0)
S
2

From your requirements I would definitely recommend sticking with SQLite. We use it extensively and have found it to be a huge advantage over other options. Single DLL, integrates really really well with .NET, and is very fast.

Stair answered 17/5, 2010 at 4:28 Comment(0)
K
0

Try Microsoft SQL Server Compact

Karynkaryo answered 16/5, 2010 at 6:51 Comment(1)
Why did you repeat an answer that was already given, and in a less-informative way?Eudemonics
R
0

If you're into object-oriented DB's, there's db4o Embedded Database.

Randy answered 17/5, 2010 at 4:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.