×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Database Tables

Database Tables

Database Tables

(OP)
I am responsible for adding enhancements to a Visual FoxPro 5 program. All the
database tables in this application are free tables (no database container is being used). To implement my enhancements I am using Visual FoxPro 6. I added a database container and then included some of the tables (.dbfs) in the container. When the tables were added FoxPro prompted me to upgrade the tables so they
could be added to the container.

This program is installed at several customer sites.

My question is how do I upgrade the free tables (which contain customer data) at the customer sites and add the container so my enhancements will work?

I tried just putting the .dbc file in the customer directory with the new executable hoping it would find the database files (.dbf). But it said they were incompatible.

Any suggestions would be appreciated.

RE: Database Tables

You will have to write an install program.
Create a install database with all the tables needed.
The install database and tables can not be the same name as any table/database in use.
Append the data from the current tables into the install tables / database.
Copy the current tables to a back up location and then delete that current table.
When all the current tables have been moved run a copy to command from the install tables to the names they should be.

The way I do it is to have a data-dictionary table called TABLES.
I place all the information required for the install program in there: Old Name, New Name, Current location, backup location, ect and write a program around a scan statement.

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