Click here to Skip to main content
15,910,123 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I would like some input on what other programmers prefer to use: Database type files like... Access, SQL, MySQL etc or creating a file from scratch and saving your data with your own techniques? Which ones are faster? more efficient? and so on.

Just curious, not really interested in wasting anybodys time. :)
Posted
Updated 26-Jun-11 17:49pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Jun-11 23:00pm    
Incorrect question. The answer would be different for different applications, requirements, etc. It also depends on how good is "your own techniques".
--SA
DrBones69 26-Jun-11 23:13pm    
OK, let's just say you're writing an inventory control program. I'm not trying to waste your time. This question is really just for S**ts && giggles. :-)

SA is right that this is an "Incorrect question" - there is no "best" result for any overall class of program. Even for your example "say you're writing an inventory control program" the big question with selecting the file type is not "which is faster" but "is this application going to be multi user or single user?" If the answer is multi user, then your own files are irrelevant - you have to go with an established database system because the alternative is far too much work.
Similarly, Access Databases are relatively simple to set up and administer, but a bit cr@p when you start adding users. MsSql is harder to get up and running - it needs a running server to work - but simple to use and administer, and very very scale-able when user needs expand.

Even in the context of a single user environment, it is not a "Do this" - it depends on so many factors. For example, the fastest-system-to-code is probably a text file: File.AppendText[^] will work fine for a logging system in a single user environment, but is a huge PITA if you actually need to review or edit the log.

Horses and courses with everything, I'm afraid!
 
Share this answer
 
Everything depends on the amount of data, the way you want to access the data itself and how are your techniques...

The typical answer that says that there is not a better product but a correct product for each situation applies here...

Without examples or work targets we can't tell you anything else.

All the comments you've received till now are more than correct. SAKRyukov and OriginalGriff are right.
 
Share this answer
 

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