Link to home
Start Free TrialLog in
Avatar of MBHEY131
MBHEY131

asked on

Conversion ?

vb.net, vs2012

I have an old "TURBO PASCAL" database (7.0 version (I BELIEVE!!))  "a whole bunch of .DAT files."
and I must bring them to (THE 21ST CENTURY) AND a SQL SERVER database

even if I can get the Pascal data to an comma delimited ASCII file - I think I can take it from there
but I have not a clue on how to mine the data from those old Pascal files!!

And I have very little time, CAN ANYONE TELL ME WHERE TO START, ON THIS ISSUE????
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Can you post a small file?  Borland had Paradox during that time and Paradox was an X-base format, similar to but not exactly Dbase.  Here http://www.alexnolan.net/software/dbf.htm is a dbf editor/viewer that might help or at least tell you whether the files are in X-base format.
Avatar of MBHEY131
MBHEY131

ASKER

had to rename file from "cust.dat" to "cust.txt" in order to get it uploaded.
CUST.txt
I know virtually nothing about Pascal, Borland, Paradox, x-base formats, etc.
It is basically a position dependent flat text data file.  I can't seem to get rid of the binary header so it can be just a text file.
?
Can you post one of the files?
There is a file posted named "cust.txt" which I had to rename from "cust.dat"
Ah, I missed the file before. Do you have the original pascal sources?
It's not an xBase file.  An xBase file has column names in the header and I didn't see that when I looked at the file.  My guess is that it is a custom format from the application developer.
Expert Comment
MerijnB2015-03-17 at 02:19:31ID: 40670054
Ah, I missed the file before. Do you have the original pascal sources?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

No, they are long gone, (I believe) - But I possibly do have a connection to a person that (MAY) be able to help
that will take some time though as he is out of the country on vacation and does not like to be bothered.

the ".pas" files is what I assume you are referring to?
Is there such a thing as a "DE-COMPILE" or something like that is PASCAL, as I know next to nothing about it.
Could that give (CODE) or - the info you need?
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Expert Comment
larryh2015-03-17 at 07:02:25ID: 40670653
It's not an xBase file.  An xBase file has column names in the header and I didn't see that when I looked at the file.  My guess is that it is a custom format from the application developer.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I've started that route (THE ORIGINAL APP DEVELOPER) and all may not be lost after all, we'll see!
=============================================================================
Expert Comment
MerijnB2015-03-17 at 09:07:15ID: 40671018

It seems that these databases are a dump of 'records' in pascal (pascal record is somewhat like c struct).
Having the original record would help a lot, so yes, I'm referring to the .pas files.
Alternatively, do you know (somewhat) the layout of these tables?
++++++++++++++++++++++++++++++++++
I think I will go with the APP DEVEL0PER route now, that's getting more promising by the minute, but thanx for your assistance.
=========================================
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.