Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Prolog database files

21 views
Skip to first unread message

Ruchs

unread,
Nov 17, 2009, 9:18:01 AM11/17/09
to
Hey All,

I was just wondering if there is anyway to take an old *.dba file
(which seems to be a prolog database file) and either query it from C+
+ using a OBDC driver or even C#. Even opening and modifying the file
from access would be great.

Kind regards,

Louis

Ruchs

unread,
Nov 17, 2009, 9:37:20 AM11/17/09
to

And yes I meant to say ODBC, basically just to give some more
background we have a system that creates and modifies this prolog
database. However, the company that created this software is non
existent anymore so we have the system that works but we need to add
more functionality, we have already done some work using the output
files from the program - but we also want to be able to read the
database and make new queries. As said above C++ and C# would be the
best possible choices for us. Kinds regards,

Louis

Chip Eastham

unread,
Nov 17, 2009, 10:11:23 AM11/17/09
to


Hi, Louis:

Is this perhaps an old PDC/Turbo Prolog "fact"
database? IIRC these are btrieve files.

regards, chip

Ruchs

unread,
Nov 19, 2009, 6:55:46 AM11/19/09
to

Hey sorry for the late reply but yes, I believe it is from the spec
that we have it is def a PDC database - not sure about the "fact" part.

Chip Eastham

unread,
Nov 19, 2009, 8:04:24 AM11/19/09
to

What I mean by "fact" is that PDC Prolog
allowed "asserting" terms into a database
(and removing them) with a database that
could either be in memory or a file. One
could also define indexes on the terms,
to facilitate queries again largish
"factbases". If you have the source code
for the PDC Prolog program, then you'll
see the "database" predicates declared
in the appropriate modules.

There seems to be few Btrieve products
on offer. Rights to the btrieve format
are held by Pervasive Software, and there's
a link that suggests they have reached an
end-of-life for support:

http://www.pervasivedb.com/Database/btrieve/Pages/BtrieveUltimate.aspx

I think I'd start first with a copy of
Turbo Prolog or an early PDC Prolog version,
prior to Visual Prolog. If you don't have
those, I do. Another approach would be to
try and open the files with generic Btrieve
utilities, if you have them

regards, chip

nelsonsoft

unread,
Nov 20, 2009, 8:29:24 PM11/20/09
to
If they are Btrieve files and you want to access them externally of
the program you will need to build the data dictionary files (DDF
files). You can use BtSearch to analyze the structure and build the
DDF afterwhich it will export the data to CSV format. You can
download at www.nssdd.com.
Thanks,
Gil
0 new messages