Dropping table in Btrieve

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!!
LVL 1
yjtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ron WarshawskyCommented:
Please, increase answer points
0
yjtAuthor Commented:
Adjusted points to 200
0
Ron WarshawskyCommented:

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.

DATE

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).

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.