Purchase Solution

Data storage methods

Not what you're looking for?

Ask Custom Question

Discuss the pros and cons of different data storage methods, including a database, which can be loosely defined as digital data storage?

Purchase this Solution

Solution Summary

Pros and cons of different data storage methods, including a database, which can be loosely defined as digital data storage are explored.

Solution Preview

Common Ways to Store Data
====================
1. Traditional database system ? Microsoft Access, Oracle, SQL Server, etc.

Advantages
Information is stored as a complete record. You can easily query the data and create new variables or data subsets. In many applications, you can create a user interface for entering the data.

Disadvantages
Requires time and technical skill to initially design the database and to set up variables correctly

Databases vary widely in capability and functionality, but all commercial database applications also carry a large amount of overhead both in distributed size and memory usage.

2. Sequential file access
Sequential files are generally the easiest for a new programmer to read and write. Unfortunately, they leave a lot to be desired when it comes to manipulating the data. The two preferred ways to read them are:
a) Comma delimited Line Input # statement to read lines individually. The individual values can be used to populate a User-Defined Type (UDT) or fields of a Record object defined by a class in the project.
b) Read the entire file into the program and then get the individual lines using a Split statement. From there, each line has to be split up even further to get the individual fields. This is a lot of work to do what the other file access methods achieve automatically.

Advantages
Fast ? no database engine to initialize.
Size ? much smaller than a traditional database. Field length is not pre-defined.
Compatibility ? can be imported/exported by a variety of applications making them the most flexible way to share data.
File can be viewed and edited using a simple text editor.
Existing records and new records can be placed directly into the existing file.
The one big advantage a sequential file has over all other types, including commercial databases, is that many other programs that are capable of importing data can recognize the fields and import from or export to the same format. In fact, even if your application uses another file type, having an export function that saves data into a sequential file is an almost foolproof way to allow other applications to access the same data.

Disadvantages
Not flexible in data storage. All records must be of the same type. That is, if you want your program to loop through ...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.