Solved

database format

Posted on 2002-06-24
7
201 Views
Last Modified: 2013-11-20
I have a program that needs to access a table of values. I would like to store this table in an external database. What format should I use. The table consists of about 130 rows x 3 columns. Each entry is a string that can contain ('+'/'-' and alph-numerics). I do not want this file to be easily read by users (ie I don't want it to be able to be read with a simple text editor). I don't mind if the file can be read by Access or a similar program. Any suggestions would be much appreciated. Please inform me reasons for your suggestions. I am currently programming in VS 6 enterprise.
0
Comment
Question by:skibud2
7 Comments
 

Expert Comment

by:vk1981
ID: 7104324
I use MySql. It's very cool...
0
 

Author Comment

by:skibud2
ID: 7104435
MySql is not quite what I am looking for. I use MySql with my php apps and it is very nice. It is not something that I would ship to customers. I was debating about using an access database or dbase file and using the CDaoDatabase class.
0
 
LVL 12

Expert Comment

by:migel
ID: 7104979
Hi!
You can use ADO objects to maintain database
this solution require install extra components: ms_dactyp.exe - MS Data Access Components to the user machine.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 2

Expert Comment

by:christophm
ID: 7105690
For that small amount of data you can put it handily in a Microsoft Document (Document Architecture).  

- your users won't need a database
- not easily read/used by other applications
- easy to implement

~ create a row class that has three variables (CString) for each column

~ put all the rows in a CObArray

~ write the serialization routine(s)

good luck - christophm
0
 

Author Comment

by:skibud2
ID: 7106491
christophm,

Do you mind providing a simple CObject derived class for the rows. For some reason, I cannot get the SerializeElements to work.
0
 
LVL 2

Expert Comment

by:christophm
ID: 7108003
Hi skibud2,
I am working on a long note for you.  But, in the meantime --  your classes must inherit from CObject to be serializable.  cm
0
 
LVL 2

Accepted Solution

by:
christophm earned 200 total points
ID: 7108244
Hi skibud2,
Go to my web page  www.teleport.com/~millercg  and get the last download (bottom left).  The page is just a plain page the link is clearly labeled.  You will download a ZIP file that contains a Word95 document.  The document has the explanation and instructions from 'A' to 'Z'.  If you cannot get to that web page then send me your address (millercg@teleport.com) and I will EMAIL the ZIP file to you.
Good Luck - chris-m
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question