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 8627609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:19:25+00:00 2026-06-12T08:19:25+00:00

How can I store data on client computers without using data servers? I have

  • 0

How can I store data on client computers without using data servers?

I have C# Windows app and want to store some data on the user’s computer. I don’t want to use any type of data server like SQL Server or Access. The user can not read this data and this data is structured like tables with row.

What is the best way to store my data? And how can I handle this case?

Notice that I want to edit and update this data.

All of my data types are string, and I don’t want to only store in-memory because after a system reboot the data must still be available for my application to work.

  • 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-12T08:19:26+00:00Added an answer on June 12, 2026 at 8:19 am

    I would suggest using SQL Server Compact which is a lightweight, file based version of a database.
    Your users do not have to have SQL Server installed to use this option.

    This would be my preferred option as it allows you to use LINQ to work with and query the data in the file very easily using technologies such as Entity Framework. In fact you can use POCO’s to represent your application entities and Entity Framework will take care of reading and writing the information to the database.

    If you are using Entity Framework you can automate the creation of the database using the configuration file. The first time you use any entities the database file will be generated automatically for you (this can be configured).

    <configuration>
        <connectionStrings>
            <add name="DatabaseContext"
                 providerName="System.Data.SqlServerCe.4.0"
                 connectionString="Data Source=C:\Paths\To\Location\DBName.abc"/>
        </connectionStrings>
    </configuration>
    

    I would suggest using one of the special folders on the system to make this transparent to the user of your application.

    Also notice that you can have whatever extension you want (DBName.abc instead of DBName.sdf) so that the file can be associated with your application.

    Using this method also has the advantage that you do not have to load your entire file into memory in one go (I.E. you can query the data and return a subset of the data) which you would not be able to do if you simply serialised your object to a file.

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

Sidebar

Related Questions

I have a generated nested Array which I store some data. How can i
On Google App Engine to query the data store with Python, one can use
i have an asp.net webform where the user can enter data and submit into
How can a web application store a very large amount of data client-side? (I'm
I need to store some data client side and this data is too large
Can Silverlight store data on a user's local machine if correct permissions are enabled?
I need to programmatically store data on the client side without having to transfer
I want to use Google spreadsheets to store data online so multiple people can
I have an Android game and I want it to store data - say
As you can know, you can store data against a contact on Android phones.

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.