Dropping table in Btrieve

Posted on 2000-01-27
Medium Priority
Last Modified: 2012-05-04
1) How do you drop the whole table in Btrieve, which is equivalent to sql's "Drop table <tablename>"?

2) How does Btrieve handles date fields? Should I declare a type with day as 1 byte, month as 1 byte and year as two bytes?

Needing an answer quick!!
Question by:yjt
  • 2

Expert Comment

by:Ron Warshawsky
ID: 2478502
Please, increase answer points

Author Comment

ID: 2485944
Adjusted points to 200

Accepted Solution

Ron Warshawsky earned 400 total points
ID: 2499146

1. To drop table in Btrieve you'll need to delete Brtieve files (no internal command exists). For standard file you'll need to consider droping external index files, if they exist. If you are deleting data-only file, consider deleting his key-only files too.

Note: You can drop index created throught the CREATE(14) throught the DROP INDEX(32) in version 6.xx+

2. Date is handled throught the DATE field type.


A DATE field is stored internally as a 4-byte value. The day and the month are
each stored in 1-byte binary format. The year is a 2-byte binary number that
represents the entire year value. The MicroKernel places the day into the first byte, the month into the second byte, and the year into a two-byte word
following the month.

DATE fields can be used in index (extended type 3).


Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question