473,760 Members | 9,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Corrupt database - 1 step forwards....

aaj
Hi all

I have been given a corrupt access 2000 backend and asked to salvage the
data.(youve gussed it, no backup)

On trying to open it just kicks me out saying its not a valid database
file - so I can't even use the internal compact/repair function

I have tried the usal stuff i.e.
Trying to repair via another access program using dao
DBEngine.Repair Database
Opening a new database and importing the old data
microsofts JETCOMP.EXE
plus a few other bits

The only luck I have had is do create a new ODBC connection and use this to
compact the database file. It seems to work and creates a new file

If I try open the new file using Access I get 'Query engine error:
42000:[microsoft][ODBC Microsoft access driver] record(s) cannot be read;no
read permission.'
..
If I then use say crystal to look directly at the ODBC connection I can see
the datatables (so there is still something there), but as soon as I try to
view the data I get the same message.

Is there any way I can get in and some how give read permissions to the
tale, or any other suggestions would be brilliant.

thanks

Andy

Nov 12 '05 #1
4 5082
In Access 97 you can open Access without opening a database then use the
database utilities to repair your database. Make a copy before doing the
repair.

"aaj" <a.*@c.com> wrote in message
news:3f******** *************** @news.easynet.c o.uk...
Hi all

I have been given a corrupt access 2000 backend and asked to salvage the
data.(youve gussed it, no backup)

On trying to open it just kicks me out saying its not a valid database
file - so I can't even use the internal compact/repair function

I have tried the usal stuff i.e.
Trying to repair via another access program using dao
DBEngine.Repair Database
Opening a new database and importing the old data
microsofts JETCOMP.EXE
plus a few other bits

The only luck I have had is do create a new ODBC connection and use this to compact the database file. It seems to work and creates a new file

If I try open the new file using Access I get 'Query engine error:
42000:[microsoft][ODBC Microsoft access driver] record(s) cannot be read;no read permission.'
.
If I then use say crystal to look directly at the ODBC connection I can see the datatables (so there is still something there), but as soon as I try to view the data I get the same message.

Is there any way I can get in and some how give read permissions to the
tale, or any other suggestions would be brilliant.

thanks

Andy

Nov 12 '05 #2
aaj
sorry,

forgot to mention that I tried this as well (in Access 2002) (but with no
joy)

andy

"paii" <pa**@packairin c.com> wrote in message
news:vn******** ****@corp.super news.com...
In Access 97 you can open Access without opening a database then use the
database utilities to repair your database. Make a copy before doing the
repair.

"aaj" <a.*@c.com> wrote in message
news:3f******** *************** @news.easynet.c o.uk...
Hi all

I have been given a corrupt access 2000 backend and asked to salvage the
data.(youve gussed it, no backup)

On trying to open it just kicks me out saying its not a valid database
file - so I can't even use the internal compact/repair function

I have tried the usal stuff i.e.
Trying to repair via another access program using dao
DBEngine.Repair Database
Opening a new database and importing the old data
microsofts JETCOMP.EXE
plus a few other bits

The only luck I have had is do create a new ODBC connection and use this

to
compact the database file. It seems to work and creates a new file

If I try open the new file using Access I get 'Query engine error:
42000:[microsoft][ODBC Microsoft access driver] record(s) cannot be

read;no
read permission.'
.
If I then use say crystal to look directly at the ODBC connection I can

see
the datatables (so there is still something there), but as soon as I try

to
view the data I get the same message.

Is there any way I can get in and some how give read permissions to the
tale, or any other suggestions would be brilliant.

thanks

Andy


Nov 12 '05 #3

On Mon, 29 Sep 2003 14:29:54 +0100, "aaj" <a.*@c.com> wrote in
comp.databases. ms-access:
If I try open the new file using Access I get 'Query engine error:
42000:[microsoft][ODBC Microsoft access driver] record(s) cannot be read;no
read permission.'
That's because the compact that seemed to work actually failed, and
the resulting file is missing key system structures, like, for
instance, the security table. That's why you get the permission
error.
Is there any way I can get in and some how give read permissions to the
tale, or any other suggestions would be brilliant.


That won't help. The compact that failed (without an error) did not
just result in a missing permissions table (which is the error you
got) but also other missing system structures, and probably missing
data tables too. Basically, the compact failed at some point -
presumably while processing one of your tables that had corruption,
and simple then bailed on the compact. The resulting file is
therefore missing any system structures that get written at the end of
the compact process, as well as any of your tables including and
beyond the first problem table encountered. So correcting the
permissions problem on the compacted database would, even if
performed, almost assuredly be a largely incomplete file.

The file you need to work with is the original corrupt file (before
the attempted odbc compact). Sending that file in to a service like
ours (www.pksolutions.com/services.htm) would result in its being
properly recovered.

Peter Miller
_______________ _______________ _______________ _______________
PK Solutions -- Data Recovery for Microsoft Access/Jet/SQL
Free quotes, Guaranteed lowest prices and best results
www.pksolutions.com 1.800.987.7716 1.619.839.3900
Nov 12 '05 #4
aaj
Thanks for the extra info Peter, I'll have a word with the guy whose
database it is,
Andy

"Peter Miller" <pm*****@pksolu tions.com> wrote in message
news:jm******** *************** *********@4ax.c om...

On Mon, 29 Sep 2003 14:29:54 +0100, "aaj" <a.*@c.com> wrote in
comp.databases. ms-access:
If I try open the new file using Access I get 'Query engine error:
42000:[microsoft][ODBC Microsoft access driver] record(s) cannot be read;noread permission.'


That's because the compact that seemed to work actually failed, and
the resulting file is missing key system structures, like, for
instance, the security table. That's why you get the permission
error.
Is there any way I can get in and some how give read permissions to the
tale, or any other suggestions would be brilliant.


That won't help. The compact that failed (without an error) did not
just result in a missing permissions table (which is the error you
got) but also other missing system structures, and probably missing
data tables too. Basically, the compact failed at some point -
presumably while processing one of your tables that had corruption,
and simple then bailed on the compact. The resulting file is
therefore missing any system structures that get written at the end of
the compact process, as well as any of your tables including and
beyond the first problem table encountered. So correcting the
permissions problem on the compacted database would, even if
performed, almost assuredly be a largely incomplete file.

The file you need to work with is the original corrupt file (before
the attempted odbc compact). Sending that file in to a service like
ours (www.pksolutions.com/services.htm) would result in its being
properly recovered.

Peter Miller
_______________ _______________ _______________ _______________
PK Solutions -- Data Recovery for Microsoft Access/Jet/SQL
Free quotes, Guaranteed lowest prices and best results
www.pksolutions.com 1.800.987.7716 1.619.839.3900

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
19290
by: Hal Vaughan | last post by:
I am writing out archive files using ZipOutputStream with the following code: aEntry is a global Array of ZipEntries llData is a LinkedList of the data corresponding to the the ZipEntry of the same index in aEntry public void save() { byte bBuffer = null; int i = 0;
12
2079
by: magmike | last post by:
When users of my site submit articles to our database (http://www.netterweb.com/articles/) they almost always have http:// addresses within the text. They are pasting that text into a box which saves to a memo field. When displayed through results on a webpage, the links are inactive, unless the user was knowledgable enough to use html within the text. However, most of my users are not html savvy. Is there a way I can code the results of...
9
2487
by: Bungle | last post by:
Hi There, Does anybody know where i might be able to locate a tool/application that can determine whether a Database is corrupt?? Also, can a bad network connection cause a corruption to a database? Thanks in advance for any help, Bungle
4
1932
by: dixie | last post by:
I have come across some code to walk through the records of a corrupt table and copy it record by record to a new table. It comes from the MVPS.Org site and is as follows. ----------------------- (Q) How can I recover records from a corrupt table? (A) First, using Access while in the database window, copy the table's structure only from the corrupt table, if possible. Then using the code below, copy each individual row from the old...
4
2396
by: nepdae | last post by:
Well, after reading and hunting all over the web, including here, I still haven't been successful in my attempts to resolve my situation. So, I thought maybe I'd just ask. Here's the situation: I have an Access 2000 database (~15 users), split into a front- and back-end. Each user has a local copy of a workgroup file and the data file is out on a server. The problem started when the IS department upgraded the server at night, touching...
17
4893
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was some problems with this programm. I checked, the log files showed that the database was corrupted. The customer told me that there no 'illegal' operation such as pull out the plug, or kill the programm via task manager... So is there any...
3
2208
by: rdemyan via AccessMonster.com | last post by:
One of my users had a corrupt front end that wouldn't open. My app is launched using a launching application (logon app). The logon app has a button for downloading a "fresh" copy of the front end from the server to the user's PC. I thought that this was a good idea since Access seems susceptible to corruption. I told the user to open the logon form and click the "Download" button, which would then replace the corrupt front end on his...
13
2676
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a records in one front end and leave it unsaved. Edit the same record in the other front end and save the change. Save the change in the first front end - this pops up the Write Conflict message to which I click Save.
8
2778
by: iheartvba | last post by:
Hi this is a query made using access query builder: SELECT tblBank.BankID, Now() AS TimeRecd, Val(Right(nz(,0),3)) AS ConsID, "AutoCASH" AS RecUser, tblBank.Dt, Forms!frmRecCASHRunningBal!tbGroup AS GroupID FROM tblBank WHERE (((tblBank.Dt)>(!!-1) And (tblBank.Dt)<(!!+1))); 1.tblBank has a record in the Dt field which equals = 02/07/08 2. tbBankMinDate -1 = 01/07/08 3. tbBankRecDate + 1 = 03/07/08
0
9521
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9945
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.