What type of database to use for a user side data?

Omar Elhamly 21 Reputation points
2022-09-14T15:59:38.637+00:00

I want to create a database for data that is saved and used by application user locally, I got confused between using SQL Management server or using .NET Service-based database. For example a to-do list, diaries stuff like that, which is meant for user and not for a company data or online website
Any help would be appreciated.

SQL Server | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Karen Payne MVP 35,596 Reputation points Volunteer Moderator
    2022-09-14T16:55:20.057+00:00

    If using for yourself look at LocalDb or SQLExpress and if for sharing with others SQLExpress.

    Note that SSMS is not a database but a tool to work with and manage your data.

    Create your database and tables using SSMS then in Visual Studio use Entity Framework Core which by using EF Power Tools will generate all needed code to work with data no matter if Windows Forms, WPF, MAUI or web projects.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. AgaveJoe 30,411 Reputation points
    2022-09-14T19:17:22.163+00:00

    I use SQLite for local app databases.

    Microsoft.Data.Sqlite overview

    0 comments No comments

  2. Bruce (SqlWork.com) 82,061 Reputation points Volunteer Moderator
    2022-09-14T20:27:24.94+00:00

    I would agree that SQLite is the most common solution. Unlike LocalDb, it does not require an additional process (SQLExpress). it is just a nuget package you add.

    there is a sqlite extension for visual studio code:

    https://marketplace.visualstudio.com/items?itemName=alexcvzz.vscode-sqlite

    this will give you a tool to explore the database. there are others

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.