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?
jmelendez28Asked:
Who is Participating?
 
Bill BachPresidentCommented:
BUTIL is the command-line Maintenance Utility.  It should be installed by default with the PSQL engine.  I know that Sage uses a bastardized form of the installer that leaves out most of the troubleshooting tools and utilities, but I believe BUTIL should still be there.  If you are unable to find it, then I recommend these steps:
1) Download the PSQLv10.30 32-bit Client
2) Install the Client to a new PC (one that does NOT run Sage)
3) Copy the BIN folder from this workstation to a different location on your Sage server.  
4) Run the BUTIL tool from this new folder.
0
 
Bill BachPresidentCommented:
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....
0
 
jmelendez28Author Commented:
Sorry What is BUTIL?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Anthony PerkinsCommented:
This question has nothing to do with SQL Server.  You may want to consider posting in a more appropriate Topic Area, such as:
http://www.experts-exchange.com/Database/Miscellaneous/
0
 
Bill BachPresidentCommented:
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.
0
 
jmelendez28Author Commented:
Thanks Bill.
0
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.

All Courses

From novice to tech pro — start learning today.