Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:43:40+00:00 2026-06-03T17:43:40+00:00

I have been tasked with finding a good fit for a database to use

  • 0

I have been tasked with finding a good fit for a database to use with an upcoming project. I am having a hard time finding a good match. Our application is a .Net Framework 4.0 C# application.

First I looked at SQLite but I am running into issue because SQLite locks it’s database file during writes.

I have 2 separate applications running at the same time using the same database and I cannot be certain when one is writing. I have attempted to just wait for the locks to release but this has caused some data loss. So I thought that i would invent a queue system, but both applications would need to use the same queue…So I thought that I would just make a separate Window’s service. All of this started to sound like a traditional RDBMS to me.

I decided to backtrack and ask myself “Am I using the right database?”.

Does anybody know of a database that might meet the requirements that I have been given?

Here are my requirements:
1. Easy to install. This includes not having a separate “installer” that users have to run separate from our application’s installation. This is what first led me to believe that I need an embedded database but I think there maybe some clever ways of including a Database installation inside of our installer.

  1. Hard to break. The biggest want here is that it should be able to work over named pipes instead of TCP/IP for security concerns (or anything that reduces the ability for people’s system configurations to break our application). Our applications will always be running on the same machine. They need to share the same database, therefore using TCP/IP could potentially cause issues if firewalls/security/”smart users” get involved.

  2. Long running operations on the database should not prevent other users from reading/writing to the database. I thought about writing some code to handle this requirement and still use Sqlite but decided to do more homework.

  3. Licensing: We want something that we can redistribute royalty free. We dont want our end user to need to purchase their own separate license for a database that we depend on.

  4. Size limitations: we plan on storing quite a bit of data in these database and arbitrary limits are not acceptable. We are willing to accept limits imposed by the operating system for file size. SQLite’s size limit (which is the size limit of any windows machine’s file) was greater than 2 terabytes.

  5. Nice to have: Able to use Entity Framework.

  6. Nice to have: Relational database. We may allow 3rd party applications to read our database and would not mind if it was relational as opposed to a document or object database. However, we would be willing to budge on this one for something that meets all our requirements.

Databases I’ve looked at so far:
RavenDB
SQLite
CubeSQLite
SQL CE

Oracle and Microsoft SQL Server are licensed and there for difficult to redistribute.

I understand that these requirements are VERY restrictive. I am not even certain that there is an out of the box solution available. I appreciate any help anybody can provide.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:43:44+00:00Added an answer on June 3, 2026 at 5:43 pm

    You need to use SQL Server CE 4.0:

    • xcopy deployment
    • support encryption
    • freely distributable
    • support multi-theading (in your case, multi-process) Only since version 4.0
    • support 4 Gb space
    • support EF (even CodeFirst)
    • it’s relational, and supports a subset of SQL Server T-SQL

    You have the wrong misconception that it requires licensing:

    Microsoft SQL Server Compact 4.0 is a free, embedded database that software developers can use for building ASP.NET websites and Windows desktop applications. SQL Server Compact 4.0 has a small footprint and supports private deployment of its binaries within the application folder, easy application development in Visual Studio and WebMatrix, and seamless migration of schema and data to SQL Server.

    From Microsoft SQL Server Compact 4.0 (MS download)

    Unless the 4Gb is not enough for you, you can use it.

    The SQL Server Express is also free, and has less limitations, but needs installation.

    The main difference betqween SQL CE and SQL Server is that CE doesn’t support Sotred Procedures. But If you use EF that isn’t a problem at all.

    EDIT Additional info on licensing:

    SQL Server Compact 4.0 is freely redistributable under a redistribution license agreement and application developers redistributing SQL Server Compact 4.0 can optionally register at the SQL Server Compact redistribution site. Registering will help the developers in getting information about SQL Server Compact critical security patches and hot fixes that can be further applied to the client installations.

    At the bottom of the donwload page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this Access Database Project file that I have been tasked to
I have been tasked with automating our build process with msbuild. We have about
I have been tasked with designing my web services client code to use the
Our organisation uses inline sql. We have been tasked with providing a suitable data
I have been tasked with building a new web project from scratch, with the
I have been tasked with creating a Software Installation Approval section for our Intranet.
I have been tasked with a project where I am to add a new
I have been tasked with refactoring a project that currently uses an EAV model
I have been tasked with finding an open source DOM XML parser. The parser
I have been tasked with developing a solution that tracks changes to a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.