473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Corrupted database. Recovery possible?

ollyb303
This is a long shot...

While I was working on an Access 2000 mdb today (using 2002, but 2000 format), Access unexpectedly closed itself (I have no idea why, I was just running a fairly standard query). When it tried to reopen the mdb, I get the message that it is corrupt - specifically:

"Microsoft Access has detected corruption in this file. To try to repair this corruption, first make a backup of the file. Then, on the tools menu, point to database utilites, then click compact and repair database. If you are trying to repair this corruption then you will need recreate this file or restore it from a previous backup"

I immediately backed it up, ran Compact and Repair - this threw the same message. I tried creating a new mdb and importing, same message. I tried decompiling from the command line, same message. I have downloaded and run the Jet Compact tool from Microsoft - this failed.

I have had partial success using Stellar Phoenix Access Recovery - using this I managed to recover tables and queries, but NOT forms, reports or modules.

My manager has contacted a recovery service online and sent them the file and they say they can only recover the same.

Our server support team have just told me that the daily backups on the server I'm working on haven't been happening for a few months now (something I was not aware of and unfortunately was depending on in case of a problem like this).

TBH I feel sick - this represents about 2 or 3 months of work!

Is there any hope at all?
Jan 7 '09 #1
14 2357
FishVal
2,653 Expert 2GB
... this represents about 2 or 3 months of work! ...
Not true.

According to my experience recoding the same you've already coded from scratch gives you a better code within less than 1/5 of a time it has taken before. :D

To say nothing about 1-month development log on bytes.com
Jan 7 '09 #2
Fair comment.

Is there no hope of recovery then?
Jan 7 '09 #3
FishVal
2,653 Expert 2GB
You could wait until Messiah come and ask him to resurrect your application.
:)

Seriously. Being on your place, I would be happy having rescued data.
Jan 7 '09 #4
Thanks for answering.

I'll write some code while I wait for the second coming then!
Jan 7 '09 #5
FishVal
2,653 Expert 2GB
Even more seriously.

I don't want to help you to bury your Hope. However, I didn't ever see or hear about an mdb recovered after such corruption.
Jan 7 '09 #6
Thanks FishVal. I thought that would be the case.

Bugger.
Jan 7 '09 #7
ramprat
60
Here is something I did to recover from a similar situation. Simply open the database using Excel. Choose all files as the file type and then click on the corrupted database. It should then show you a list of tables in the database. You can then save each one in Excel and then reimport them into a new database. I hope this helps. Good luck.
Jan 7 '09 #8
Thanks ramprat. This did work to recover the table data. However I had already been able to do this using stellar phoenix.

TBH the tables are not the issue here as the application is actually a front end for an Oracle database so the only tables are a few temp tables with very little data in them.

The bits I can't recover (forms, reports and code modules) are the bits I really need!!!!

I've started recoding it all this morning.
Jan 8 '09 #9
tdw
206 100+
A corrupted database is what caused me to start learning Access.
So far, just self-taught, but may go to school to learn more soon.
No corrupted databases since then....yet....I hope I didn't just jinx myself.

When the Messiah comes, won't the anti-christ be killed?? Without Bill Gates, what would you need with a Microsoft database anyway? So much for Him resurrecting the file.
Jan 8 '09 #10
NeoPa
32,556 Expert Mod 16PB
It's avery long shot, but try opening Access and hitting Alt-F11 (to open the VBA window) twice (back into Access). Now try to open the corrupted database using the bypass key (Shift). If you are very lucky it will succeeed to a degree and allow you to switch back across to the VBA window and copy all your code.

If I'm honest I doubt it'll work, but good luck with your attempts anyway :)
Jan 8 '09 #11
Thanks for the suggestion NeoPa.

As you predicted it didn't work! But thanks all the same : )

As FishVal predicted, I am progressing much faster than I did with the code originally, the code is tighter and the whole thing is looking improved so far.

I'm making incremental backups every few hours this time!
Jan 9 '09 #12
NeoPa
32,556 Expert Mod 16PB
@ollyb303
LOL. I expect it was worth a try anyway.
@ollyb303
I'm very pleased to hear it. Bright sides make life more bearable ;)
@ollyb303
Indeed :) Been there. Done that.

It hurts, but it also changes the way you work to a better approach (although I also appreciate you had it covered as far as you knew).

Anyway, best of luck.
Jan 9 '09 #13
: )


Cheers! It's all going well now...
Jan 12 '09 #14
@FishVal
re coding is good practice.
Jan 12 '09 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Niy | last post by:
can not open database because of this, what I can do in this sceneiaro? complete or incomplete recovery? database was closed because of media crash. so also need instance recovery
2
by: jason | last post by:
Need to recover from a corrupted log file. The database in Enterprise Manager shows the database as corrupt. Using sp_Attach_db produces a corrupt log message. Any way to recover the data? ...
4
by: serge | last post by:
Running SQL Server 2000 Enterprise Edition SP3. The database is also used by Microsoft Project Server 2002 and also has OLAP views, so the database is being used to view/run cubes in the Analysis...
2
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server installation. I am not able to repair the corrupted Windows...
28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
2
by: Rick Brandt | last post by:
I posted this issue a while back (over a year ago?) but thought I would take another crack at it. I have one user out of about 250 where my app's custom menu bar does not work on any of the...
14
by: Lauren Wilson | last post by:
Well, it has finally happened. We have a five year old app that is widely distributed. I cannot get an update done because none of the code modules will open. Access complains that the module...
0
by: Reshmi Jacob | last post by:
Hi My problem occurs in a network with 40-50 systems working from a server. Current users will be kicked out with "ORA-01092: ORACLE instance terminated. Disconnection forced", and users trying...
4
by: =?Utf-8?B?U1VOTlk=?= | last post by:
Hi, i am uploading a .docx file into sql2005 and later when i retrieve the file from the database and i open it, i get a error message "The file is corrupted and cannot be open". I am not facing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.