So I need DDFs other than the INDEX, FILE and FIELD ones?
Main Topics
Browse All TopicsI am completely new to databases beyond Microsoft Access. Learning how to use SQL is still a project for when I have time in the future. :|
I have a database, containing quite a few tables, all in .BTR format. I can get Pervasive.SQL 2000i to access the database, and the FIELD, File and INDEX .DDF's show up fine, but no tables.
Looking at DEMODATA, the tables are all in .MKD format. Will Pervasive.SQL 2000i open .BTR files?
I’ve tried to read all the documentation I could find on the Pervasive website, but I couldn't find anything about tables of different file formats. All the coding went straight over my head. I’ve spent all of last Friday and today look for information (mostly on this excellent site) without luck, as most people seem to have problems with connecting to databases, not the actual databases themselves.
I’ve found how to use the export wizard, but as the tables don't show up in the list, I can’t do anything with it. :(
Any help appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No. You should have a least FILE.DDF, FIELD.DDF, and INDEX.DDF. You may have others but those three are the minimum. You can't however just drop in any copy those three files. You must use a matched set and they must describe your data files. For example, you can't take the DDFs in the Pervasive Demodata directory and drop them into your data directory.
Have you contacted the vendor for DDFs?
I have found the solution. In the File.ddf file, the tables have full filenames, copying the database to a directory with the correct filename solves the problem.
However, when opening some of the tables, I get the following "ODBC error": "ODBC Error: SQLSTATE = 22005, Native error code = 0, Error in assignment". A google search doesn't bring up much. Any help with this one?
Sorry for my ignorance relating to the first problem.
For those tables you received the "error in assignment error", I may have a solution for you.
I had the exact same error earlier today, but I've found that when creating a new table and using existing data from a btr file, one column not only was too large (over 254 characters), but the data type was "unknown". After truncating the column to a valid # of characters I still received the same error.
Once deleting this lone column, I finally was able to access the table & all the rest of the existing columns of data.
To remove a column, right click on the table in Control Center and choose Tasks>Edit Table Design. Check the size & type to ensure that they are indeed valid. You should be able to do this even if you cannot access its data.
According to the following link, this error was fixed in Pervasive 2000i sp4:
http://www.dbforums.com/sh
This other link goes through some troubleshooting with regards to the error:
http://www.talkaboutdataba
Mac
Business Accounts
Answer for Membership
by: mirtheilPosted on 2004-07-27 at 10:40:09ID: 11648900
In order to use ODBC (used by the PCC in 2000i and later), you need DDFs. The fact that your database is empty tells me that you didn't have DDFs. Contact the vendor for DDFs for your tables. Copy them into the data directory and try again.
To answer you question though, yes Pervasive.SQL 2000i can read and write BTR files (or any Btrieve/Pervasive data files). The extension doesn't matter as long as it's consistent between the DDF definition and the file name. For example, I've used MGC, DRT, BRT, and a few others.