Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDF Problems/Questions

Status
Not open for further replies.

matzos

Programmer
Aug 22, 2001
38
US
I'm new to Pervasive and have to convert a btrieve .DBF to Access. My company has done this for years using existing DDFs that were created 3 programmers ago but now I have to convert a new table that does not have a DDF identity.

How do you create a DDF to establish an ODBC link?

Please advise. Thanks.
 
You didn't mention what version of Pervasive you have so it's going to be hard to say for sure. There are several ways to create the DDFs for an ODBC link.
Regardless of the method, you will need to know the exact structure of the record.
The first is to use SQL Create Table statements. This is the fastest way since you can set the Create Table statements up and then run all of them, one after another.
The second is to use the Create Table Wizard (if you're using Pervasive.SQL 2000) or DDF Ease (in Pervasive.SQL 7.0).
There are third party DDF Creation tools like DDFMaker and others available on the Pervasive COmponent ZOne (There are other ways when using Pervasive.SQL 2000. There is a new interface called DTI and DTO. DTI is geared for VC while DTO is geared for VB. Each of those are described in the Pervasive.SQL 2000 SDK.
 
You can take a look at BtSearch at It helps you analyze your existing Btrieve files and helps you create the DDF files. Once created it also allows you to export to dbase or ascii formats which can then be imported into Access. Gil
 
However you create your DDFs make sure you run them through the consistency checker in the PCC before using them (they should be perfect if you used SQL queries in the PCC to create them as the SQL engine - the SRDE - creates the DDFs and Btrieve tables simultaneously and in sync when you do that) as there are several tools that use the transactional/Btrieve API to create the files/tables and the DDFs seperately and so are not guaranteed that they are accurate or in sync at all times.

Pervasivite
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top