![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In response to our request, one of our vendors has recently provided us with DDFs for an old btrieve database/application. The rep tells us that he is using a proprietary tool for generating DDFs. Unfortunately, his tool doesn't seem to generate an INDEX.DDF file and we're going to have to live with it. Nevertheless, the FIELD.DDF and FILE.DDF seem to work fine and I can see the tables and their fields. My thoughts are that I can probably create the INDEX.DDF by using the Create table utility to examine the indexes in the btrieve files, then do a CREATE INDEX for each index on each table using the IN DICTIONARY option so as not to overwrite the btrieve files. Will this work? Will the index get used properly? Thanks, Bill Ehrreich Hollywood, FL Sent via www.billmiami.com |
#3
| |||
| |||
|
|
As with anything, you should always have a backup of your DDF's and data files before starting this task. Better yet, |
|
I wrote a utility a while back that would create the proper index.ddf records based on the Btrieve files, for a similar |
#4
| |||
| |||
|
|
By the way, I have one of your primers on Pervasive on my desk from a training session that a co-worker attended. That and the Pervasive documentation have been very helpful to me. |
|
Running a DELETE FROM <table> but will the remaining file be adequate for your needs? |
|
One more question, by the way. Is it possible for the presence of certain other non btrieve files in the same folder as the btrieve files to cause the SQL engine to have difficulty interpreting the database? It would seem the me that the FILE.DDF should be able to tell the engine which files comprised the database and which didn't but I seem to remember a few hiccups until I cleared a number of miscellaneous files from the folder. |
#5
| |||
| |||
|
|
Great! From what company, if you can say? |
|
Actually, no, since it will leave the tables very large. Instead, use the command: |
#6
| |||
| |||
|
|
Great! From what company, if you can say? Jorge B. is the person. You have a couple of his utilities posted on your site. Actually, no, since it will leave the tables very large. Instead, use the command: BUTIL -CLONE TEMP\filename filename Supply your own filenames (with extensions), obviously, and make sure that the TEMP directory exists first. Why would deleting all the records leave the tables very large? I haven't looked at all of these btreive functions. Perhaps I should. Bill Sent via www.billmiami.com |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
In reading a bit more, I see that space formerly used for deleted records is not classified as "free space". |
#9
| |||
| |||
|
|
In reading a bit more, I see that space formerly used for deleted records is not classified as "free space". In fact, I should have said TRUNCATE TABLE rather than DELETE FROM to ensure that the space is reused, but in looking at the documentation, I don't see TRUNCATE to be a valid command in Pervasive SQL. Bill Sent via www.billmiami.com |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |