×
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

Addind new table (.mdk) to database

Addind new table (.mdk) to database

Addind new table (.mdk) to database

(OP)
I created a database with a bunch of tables using the Pervasive Create Database and Create Table utilities.

I then wrote an application(C++) which created and populated a new Btrieve file/table(.MKD) using the Btrieve API (C_CREATE, etc.).

So, how do I put the new file characteristics into the DDFs so it will be part of the previously created database?  Is there a way to do this using the Btrieve API? Pervasive tool?

The file is very lonely and very much wants to be part of this database.

Thank you.

RE: Addind new table (.mdk) to database

There are several ways to add an existing file to a set of DDFs. One, use the Create Table Wizard and specify the file by checking the "Advanced Settings" check box. Two, create a Create Table Statement. For example:
create table test1 using 'file.btr'
(field1 char(10))
You'll probably want to use the "Set TrueNullCreate=Off" statement before the create table statement to handle the true null byte.  Three, write a program that uses DTI or DTO to create the DDF definition.  Four, use a third party tool from http://www.pervasive.com/componentzone.
Hope this helps.

mirtheil@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician

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