×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Modifying ddfs

Modifying ddfs

Modifying ddfs

(OP)
I have several.btr files that are not included in the ddfs supplied by the vendor.  I know the table structure of these files.  How do I modify the ddfs to look at these files?

I added a new table in Pervasive 9 control center, but it created a NEW file with a .mkd extension rather than looking atthe existing .btr file.

Any insights appreciated.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
www.gainfocus.biz

"A fine is a tax for doing wrong.  A tax is a fine for doing well.
" - unknown

RE: Modifying ddfs

If you are using a CREATE TABLE statement, you can add the "USING" and the "IN DICTIONARY" clauses to specify existing files.  The USING clause allows you to specify the actual filename.  For example, CREATE TABLE table USING 'file.btr' (F1 char(10)).
The IN DICTIONARY clause tells the engine to only modify the DDFs and won't modify the data file.  

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
http://www.mirtheil.com

RE: Modifying ddfs

(OP)
Can you supply an example of this that I can mimic?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
www.gainfocus.biz

"A fine is a tax for doing wrong.  A tax is a fine for doing well.
" - unknown

RE: Modifying ddfs

Sure.  Here's an example of a Create that uses both options I describe:
CREATE TABLE test IN DICTIONARY USING 'test.btr'
(f1 char(10),
f2 char(20),
f3 char(30))

The IN DICTIONARY can also be applied to the CREATE INDEX statement:

CREATE INDEX idxF1 IN DICTIONARY ON test (f1)


The CREATE TABLE will create an entry in the DDFs pointing to "test.btr" but won't overwrite "test.btr".  
The CREATE INDEX will create an index entry in the DDF but won't modify the underlying data file.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close