C# SQL Database – How to Create a Minimal SQL Database in C#

cdatabasesql

I'm working on a small project (not production) where I'm needing to store enough data that something like a CSV would be inefficient to process and an SQL/MySQL server would be too much. Does .Net have any way to efficiently store several entries of data with the ability to query without having to manage and connect to a server rather loading and processing a single file.

Best Answer

There are a few alternatives, in no particular order:

  1. All versions of (paid?) visual studio come with SQL Server Express installed. You can use that.
  2. (Ugh) XML files
  3. SQL Server CE (basically, local SQL via file)
  4. SQLite

More ideas here: https://stackoverflow.com/questions/3639846/what-is-a-good-embedded-database-to-use-with-c