Link to home
Start Free TrialLog in
Avatar of jmelendez28
jmelendez28

asked on

how to delete all records for a table in Pervasive?

I am working with sage accpac and the database is in pervasive 10.3
I need to empty a LOG table that have history from 5 years now and is very big.
I want to delete all records.
How can I do it?
Avatar of Bill Bach
Bill Bach
Flag of United States of America image

The fastest solution is this:
- Get all users out of Sage and open a command prompt window in the Sage database folder.
- RENAME the file to a new name, say LOG_OLD.DAT:
    REN LOG.DAT LOG_OLD.DAT
- Create a new file using BUTIL:
    BUTIL -CLONE LOG.DAT LOG_OLD.DAT
- Allow users back into Sage.

Note that you should use the right name of the log file, of course....
Avatar of jmelendez28
jmelendez28

ASKER

Sorry What is BUTIL?
ASKER CERTIFIED SOLUTION
Avatar of Bill Bach
Bill Bach
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has nothing to do with SQL Server.  You may want to consider posting in a more appropriate Topic Area, such as:
https://www.experts-exchange.com/Database/Miscellaneous/
There used to be an area specific to Btrieve/PSQL, but EE eliminated it several years ago. Users now have to guess where to post, and often post to the SQL server or Postgres forums. Until a new forum comes around, I expect this mispostings to continue.
Thanks Bill.