Matthias Thomann
Matthias Thomann

Reputation: 53

How can I create a simple database without actually using a database software (like Access / local SQL)?

I was thinking about creating a simple database where I can store some text, nothing more. My question is: What is the best way to store data without using multiple files?

To my mind came CSV, but I am not sure if this is a proper solution...

Thanks for answers!

Upvotes: 0

Views: 2143

Answers (6)

SUMIT
SUMIT

Reputation: 38

I prefer to suggest to use XML for database. Why:

  • Easy to query.
  • Easy to save data to.
  • Easy to edit.
  • Very light weight.

You can use LINQ-to-XML to "save-to and retrieve-from" data.

Upvotes: 0

Dennis_E
Dennis_E

Reputation: 8894

There's always xml. You can even use linq with that: http://msdn.microsoft.com/en-us/library/system.xml.linq%28v=vs.110%29.aspx

Upvotes: 1

Karan Anand
Karan Anand

Reputation: 24

I would use XML if you need to store just text . It also gives you more structure.

http://forums.devshed.com/xml-programming-19/xml-alternative-databases-34313.html

Upvotes: 0

dwana
dwana

Reputation: 413

If you are working with C#, you could easily use an excel worksheet. ( but as suggested json,xml, plain text will work too)

Upvotes: 0

Aitor Martin
Aitor Martin

Reputation: 734

I would use a JSON-like file text. Easy to Read, easy to Dump / Save and easy to modify as its supported in all major languages.

Read more here:

Upvotes: 0

dknaack
dknaack

Reputation: 60448

If you want a real sql database, you can use SQLCe. Its a SQL Database in a file.

More Information

Upvotes: 0

Related Questions