Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to retrieve deleted records?

49 views
Skip to first unread message

EEssajee

unread,
Jul 2, 2007, 12:56:00 PM7/2/07
to
Some of my records have been deleted by data entry staff (in a form). How do
I restore/retrieve them?
Thanks much.

'69 Camaro

unread,
Jul 2, 2007, 1:03:06 PM7/2/07
to
> Some of my records have been deleted by data entry staff (in a form). How
> do
> I restore/retrieve them?

Restore them from backup. You do have a backup, don't you?

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.


Scott McDaniel

unread,
Jul 2, 2007, 1:06:51 PM7/2/07
to

You really can't, at least not without some professional assistance. Access doesn't really have a "recycle" bin like
Windows, so when a record is deleted, it's tough to get it back.

If you haven't already done so, make a copy of the database (so no further overwrites can occur), then contact one of
the data restoration services (www.pksolutions.com or www.everythingaccess.com are two that are mentioned frequently).


Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com

'69 Camaro

unread,
Jul 2, 2007, 1:25:46 PM7/2/07
to
>>Some of my records have been deleted by data entry staff (in a form). How
>>do
>>I restore/retrieve them?
>>Thanks much.
>
> You really can't, at least not without some professional assistance.
> Access doesn't really have a "recycle" bin like
> Windows, so when a record is deleted, it's tough to get it back.
>
> If you haven't already done so, make a copy of the database (so no further
> overwrites can occur), then contact one of
> the data restoration services (www.pksolutions.com or
> www.everythingaccess.com are two that are mentioned frequently).

Scott, one cannot retrieve more than 5% of deleted records, and that's when
the mistaken deletion is discovered right away. Jet begins doing its
housekeeping immediately when a record is marked for deletion. If the
deleted record is at the beginning of the data page, the rest of the records
in that data page "move up" and the deleted record no longer exists. Only
if the record is at the end of the data page will it be "marked for
deletion," instead of removed, but once it's marked for deletion, Jet can
store any value where the deleted record was once located while doing its
housekeeping, so the values in addresses for that record may not be
accurate.

It's best to restore from backup, not pay an expensive recovery service to
retrieve less than 5% of the records that may or may not be garbled.
Customers are _never_ happy with the results.

EEssajee

unread,
Jul 2, 2007, 1:58:00 PM7/2/07
to
Thanks for your responses. Yes, I do a weekly backup. Will need to find the
right files.
Thanks again for all your help.

Scott McDaniel

unread,
Jul 2, 2007, 5:18:35 PM7/2/07
to
On Mon, 2 Jul 2007 10:25:46 -0700, "'69 Camaro" <ForwardZERO_SP...@Spameater.orgZERO_SPAM> wrote:

>>>Some of my records have been deleted by data entry staff (in a form). How
>>>do
>>>I restore/retrieve them?
>>>Thanks much.
>>
>> You really can't, at least not without some professional assistance.
>> Access doesn't really have a "recycle" bin like
>> Windows, so when a record is deleted, it's tough to get it back.
>>
>> If you haven't already done so, make a copy of the database (so no further
>> overwrites can occur), then contact one of
>> the data restoration services (www.pksolutions.com or
>> www.everythingaccess.com are two that are mentioned frequently).
>
>Scott, one cannot retrieve more than 5% of deleted records, and that's when
>the mistaken deletion is discovered right away. Jet begins doing its
>housekeeping immediately when a record is marked for deletion. If the
>deleted record is at the beginning of the data page, the rest of the records
>in that data page "move up" and the deleted record no longer exists. Only
>if the record is at the end of the data page will it be "marked for
>deletion," instead of removed, but once it's marked for deletion, Jet can
>store any value where the deleted record was once located while doing its
>housekeeping, so the values in addresses for that record may not be
>accurate.

Thanks for the info Gunny ... always wondered how successful those services were, now I know. Good to know about the
housekeeping services also, I always thought the records were simply marked for deletion and weren't dealt with until
the next Compact and Repair ... not sure where I got that idea, but thanks again!

>
>It's best to restore from backup, not pay an expensive recovery service to
>retrieve less than 5% of the records that may or may not be garbled.
>Customers are _never_ happy with the results.
>
>HTH.
>Gunny
>
>See http://www.QBuilt.com for all your database needs.
>See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
>Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
>http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
>info.
>

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com

John W. Vinson

unread,
Jul 2, 2007, 8:29:02 PM7/2/07
to
On Mon, 2 Jul 2007 10:25:46 -0700, "'69 Camaro"
<ForwardZERO_SP...@Spameater.orgZERO_SPAM> wrote:


>>Scott, one cannot retrieve more than 5% of deleted records, and that's when
>>the mistaken deletion is discovered right away. Jet begins doing its
>>housekeeping immediately when a record is marked for deletion. If the
>>deleted record is at the beginning of the data page, the rest of the records
>>in that data page "move up" and the deleted record no longer exists. Only
>>if the record is at the end of the data page will it be "marked for
>>deletion," instead of removed, but once it's marked for deletion, Jet can
>>store any value where the deleted record was once located while doing its
>>housekeeping, so the values in addresses for that record may not be
>>accurate.

Thanks, Gunny. That sounds like the voice of painful experience talking...

On Mon, 02 Jul 2007 17:18:35 -0400, Scott McDaniel
<scott@NoSpam_Infotrakker.com> wrote:


>Thanks for the info Gunny ... always wondered how successful those services were, now I know. Good to know about the
>housekeeping services also, I always thought the records were simply marked for deletion and weren't dealt with until
>the next Compact and Repair ... not sure where I got that idea, but thanks again!

My understanding - and on one personal experience, quite some time ago -
pksolutions can be very effective at recovering the code, forms, and reports
(the structure) of a damaged database. They don't make any aggressive promises
about recovering data. So it depends on what you want recovered... and no
matter what it is, a large quantity of luck is needed (or, of course, a good
current backup!!)

John W. Vinson [MVP]

'69 Camaro

unread,
Jul 2, 2007, 9:03:38 PM7/2/07
to
Hi, Scott.

> Thanks for the info Gunny ... always wondered how successful those
> services
> were, now I know.

Data can be recovered, but it's generally not in a very usable state, and
there's not much of it. Customers always balk at paying a large bill for
recovering so little data. If tables themselves are deleted, then under
certain circumstances the whole set of records in the deleted tables may be
recoverable, but recovering individual records from an existing table is
very difficult or even impossible in most cases.

> Good to know about the
> housekeeping services also, I always thought the records were simply
> marked for deletion and weren't dealt with until the next Compact and
> Repair

They do get marked for deletion, but there's no telling how much time Jet
will take to remove the pointer to the record and the record itself during
its housekeeping chores (if it actually does remove the record). Sometimes
it's immediate, and sometimes it takes a while, but even when the record is
eliminated, the data pages don't shrink to fit the remaining data, so a
compaction is required to recover the disk space used by mostly empty data
pages. During the compaction, of course, those records marked for deletion
don't get copied to the new file.

everythinga...@googlemail.com

unread,
Jul 3, 2007, 3:38:44 AM7/3/07
to
On 3 Jul, 02:03, "'69 Camaro" <ForwardZERO_SPAM.To.
> Seehttp://www.Access.QBuilt.comfor Microsoft Access tips and tutorials.

> Blogs:www.DataDevilDog.BlogSpot.com,www.DatabaseTips.BlogSpot.comhttp://www.Access.QBuilt.com/html/expert_contributors2.htmlfor contact
> info.

Recovering from a corrupt file is typically much more effective than
trying to recover deleted records. As Gunny says, a deleted table is
(usually) also fully recoverable.

It also depends on what version of Jet and what service packs you have
installed as the "housekeeping" that Jet does has changed across
service packs. Typically though (in the cases where we have done
specific recovery of deleted records), only 1 record per 4k Jet data
page is recoverable (2k pages in Jet3).

The 5% figure is debatable since it largely depends on how much space
it takes Jet to store the records from the table. For example, if
each record takes 3k of storage space then only 1 record can be stored
in each Jet data page and therefore a full recovery _potentially_
could be possible. The integrity of the recoverable data is another
factor - sometimes Jet can randomly overwrite the remaining records
with invalid data (- we presume, using it as a 'temporary storage'
area until a compact & repair occurs).

For our recovery service we don't even advertise recovery of deleted
records (and only offer it when specifically requested), simply
because, as Gunny says, clients aren't generally happy with the
results and prefer to resort to an old backup anyway. There are
exceptions of course, where a client simply has to retrieve anything
that is possible from the deleted records but these are few and far
between.

everythinga...@googlemail.com

unread,
Jul 3, 2007, 3:45:26 AM7/3/07
to
> > Seehttp://www.Access.QBuilt.comforMicrosoft Access tips and tutorials.
> > Blogs:www.DataDevilDog.BlogSpot.com,www.DatabaseTips.BlogSpot.comhttp://www...contact

> > info.
>
> Recovering from a corrupt file is typically much more effective than
> trying to recover deleted records. As Gunny says, a deleted table is
> (usually) also fully recoverable.
>
> It also depends on what version of Jet and what service packs you have
> installed as the "housekeeping" that Jet does has changed across
> service packs. Typically though (in the cases where we have done
> specific recovery of deleted records), only 1 record per 4k Jet data
> page is recoverable (2k pages in Jet3).
>
> The 5% figure is debatable since it largely depends on how much space
> it takes Jet to store the records from the table. For example, if
> each record takes 3k of storage space then only 1 record can be stored
> in each Jet data page and therefore a full recovery _potentially_
> could be possible. The integrity of the recoverable data is another
> factor - sometimes Jet can randomly overwrite the remaining records
> with invalid data (- we presume, using it as a 'temporary storage'
> area until a compact & repair occurs).
>
> For our recovery service we don't even advertise recovery of deleted
> records (and only offer it when specifically requested), simply
> because, as Gunny says, clients aren't generally happy with the
> results and prefer to resort to an old backup anyway. There are
> exceptions of course, where a client simply has to retrieve anything
> that is possible from the deleted records but these are few and far
> between.- Hide quoted text -
>
> - Show quoted text -

...
Wayne Phillips
http://www.everythingaccess.com

John W. Vinson

unread,
Jul 3, 2007, 11:32:50 AM7/3/07
to
On Tue, 03 Jul 2007 07:38:44 -0000, everythinga...@googlemail.com
wrote:

>It also depends on what version of Jet and what service packs you have
>installed as the "housekeeping" that Jet does has changed across
>service packs. Typically though (in the cases where we have done
>specific recovery of deleted records), only 1 record per 4k Jet data
>page is recoverable (2k pages in Jet3).
>
>The 5% figure is debatable since it largely depends on how much space
>it takes Jet to store the records from the table. For example, if
>each record takes 3k of storage space then only 1 record can be stored
>in each Jet data page and therefore a full recovery _potentially_
>could be possible. The integrity of the recoverable data is another
>factor - sometimes Jet can randomly overwrite the remaining records
>with invalid data (- we presume, using it as a 'temporary storage'
>area until a compact & repair occurs).
>
>For our recovery service we don't even advertise recovery of deleted
>records (and only offer it when specifically requested), simply
>because, as Gunny says, clients aren't generally happy with the
>results and prefer to resort to an old backup anyway. There are
>exceptions of course, where a client simply has to retrieve anything
>that is possible from the deleted records but these are few and far
>between.

Thanks very much for the insider's view! I was not aware of the "one record
per page" phenomenon- very interesting!


John W. Vinson [MVP]

0 new messages