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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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

Bill BachPresident and Btrieve GuruCommented:
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
Bill BachPresident and Btrieve GuruCommented:
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

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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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 BachPresident and Btrieve GuruCommented:
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
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.