Click here to Skip to main content
15,891,844 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am trying to build a language dictionary with C#.net in windows form application. I am wondering how can I store the data(words and meaning) without any database like oracle or mysql and use the application offline. Data is to be relational. I have read about sdf file. But what can be other possible ways to store data?
Hints or links will be great help.
Thank you..!! :-)

What I have tried:

Currently learning what sdf file actually is and how it works
Posted
Updated 1-Mar-17 0:16am
Comments
Garth J Lancaster 1-Mar-17 6:20am    
not sure what your constraints actually are .... offline, ok, but, you could use SQLite Db, LiteDB, where the database resides as a single file wherever you put it on your disk - in a lot of ways these are no different to your proposed '.sdf' solution

At one end of the spectrum of solutions, you have text files - at the other end, you have a whole host of things like SQLite, LiteDB - what you need to think about is ease, speed of data operations - 'CRUD' etc, whether one or more (processes) will be modifying/reading the data .....

btw, .sdf is still a database file, it looks like its SQL Server CE version - you 'may' be able to use that with c#/.Net, I havnt checked
planetz 1-Mar-17 6:30am    
Thank you for helping with ideas. I will try and get back.

1 solution

If by "no database" you mean no client\server database or no database that requires an installation then you can use SQLite or Access. Both of which will give your apps the ability to use databases without really needing the client to install a DB server.

Or you could simply store your data in files, maybe XML files or in JSON format.
 
Share this answer
 
v2
Comments
planetz 1-Mar-17 6:31am    
Thank you for your response. Yes, I meant single file. :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900