Comp & Rep (1 Viewer)

Kundan

Registered User.
Local time
Today, 02:59
Joined
Mar 23, 2019
Messages
118
How to Compact & Repair back-end from front-end through code?
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:59
Joined
Feb 28, 2001
Messages
27,194
While it is theoretically possible to do this, the fact that you have a front-end open very often means that the back-end is also open. Normally, you will require exclusive access to the BE to do a Compact & Repair. If even one other person has the FE open, you will NOT be able to do this at all. Even if they aren't doing anything, having the BE open by two users is enough to deny lock conversion from Shared to Exclusive. Without that lock conversion, you are dead in the water.

The way that I always did this was that we had a time set aside every other week so that we could take down the DB completely in order to manually perform the C&R.
 

Kundan

Registered User.
Local time
Today, 02:59
Joined
Mar 23, 2019
Messages
118
While it is theoretically possible to do this, the fact that you have a front-end open very often means that the back-end is also open. Normally, you will require exclusive access to the BE to do a Compact & Repair. If even one other person has the FE open, you will NOT be able to do this at all. Even if they aren't doing anything, having the BE open by two users is enough to deny lock conversion from Shared to Exclusive. Without that lock conversion, you are dead in the water.

The way that I always did this was that we had a time set aside every other week so that we could take down the DB completely in order to manually perform the C&R.

Thanks. GOD BLESS YOU!!!!!!!!!!!
Hi. Not really sure why you need to do this, but you might also consider looking at this code for backing up and compacting the BE.

Thanks. GOD BLESS YOU!!!!!!!!!!!
 

Users who are viewing this thread

Top Bottom