Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pack database

Status
Not open for further replies.

astech

Programmer
Jul 25, 2000
59
ID
Is pack database including pack tables inside ?.

How to pack tables in database programaticaly ?.

thanks.
 
Hi astech

If you mean PACK DATABASE as a command, I dont think it exists.

You can only pack one table at a time with the command {color blue]PACK myTable.

To pack all tables in a specific directory, which can be your data directory, follow this link..

Utility to Pack Data Files
faq182-1389

Though that is FPD FAQ, it very well applies here.

:)


____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
This is how you pack tables programmatically:

USE abc EXCLUSIVE && Open the table exclusively
PACK && Removes all records marked for deletion
USE IN abc && Closes the table

NOTE: There is no way to retrieve deleted records after using PACK.
 
thanks mr. Ramani and mr. cowenby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top