473,732 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to corrupt a MS Access database file in a 'normal' way?

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 possible normal operation which could corrupt the
database? such as 'Weird characters' I guess? (The custom is from
Italy, is there any special Italian chars could do this?)

Of course it is possible that there are some bugs in the programm,
which possibly caused a error may corrupt the database file, but still,
how? The program wasn't stopped violently anyway ...

Anyone could give some idea about this? Since it is rather hard to talk
to Italians... So I can not completely investigate 'what they did about
the program'... I have to check the program and potential operations
which may corrupt the database.

Thanks a lot.

Jul 18 '06 #1
17 4891
shineofleo wrote:
The customer told me that there no 'illegal' operation such as pull out
the plug, or kill the programm via task manager...
Of course it is possible that there are some bugs in the programm,
which possibly caused a error may corrupt the database file, but still,
how? The program wasn't stopped violently anyway ...

Since it is rather hard to talk to Italians.
Did anyone head-butt the computer in involved?

Fifty per cent of the time people are unaware of illegal or violent
computer activity. The other fifty per cent of the time they lie about
it.

Jul 18 '06 #2
Lol, thank you for your humours reply.

Honestly, I do hope they didn't tell the truth, which is much easier
for me. In addition, this software has been used for a long time, and
there is no other customers who complained about this.

However, this time they said the similar problem repeated 4 times....
The first time I get the database file back, and tried to open it in
Access, it is said 'corrupted database file, do you want to fix it?' i
chose fix, then everything went back to normal. But 4 times... I
started to worry about if there is something goes wrong in my code.

Well, I don't think they would do the stupid thing 4 times... Or,
maybe... who knows...

But I just want to know the possible answer to this question, assuming
that the customers are telling the truth.

Lyle Fairfield :
shineofleo wrote:
The customer told me that there no 'illegal' operation such as pull out
the plug, or kill the programm via task manager...
Of course it is possible that there are some bugs in the programm,
which possibly caused a error may corrupt the database file, but still,
how? The program wasn't stopped violently anyway ...

Since it is rather hard to talk to Italians.

Did anyone head-butt the computer in involved?

Fifty per cent of the time people are unaware of illegal or violent
computer activity. The other fifty per cent of the time they lie about
it.
Jul 18 '06 #3
"shineofleo " <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:
So is there any possible normal operation which could corrupt the
database?
No, but bad versions of Jet on the machines using the VB app could
lead to significant risk of corruption. Jet 4 SP6 or SP8 is required
for reliable operation of Jet 4 (SP8 is the bug fix for the useless
SP7; SP7-8 add no real stability, only the security fixes to make
Jet less vulnerable to executing dangerous code).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 18 '06 #4
Thank you... But we deliver the whole PC to the customer... Now I am
trying to 'recreate' the bad result just like the customer, but no good
news... sigh....

David W. Fenton 写道:
"shineofleo " <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:
So is there any possible normal operation which could corrupt the
database?

No, but bad versions of Jet on the machines using the VB app could
lead to significant risk of corruption. Jet 4 SP6 or SP8 is required
for reliable operation of Jet 4 (SP8 is the bug fix for the useless
SP7; SP7-8 add no real stability, only the security fixes to make
Jet less vulnerable to executing dangerous code).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 18 '06 #5
The last time I got called out to a serious case of
database corruption, the users didn't realise that
having the computer stop and restart itself a couple
of times a day was anything worth commenting about.

You always have to be aware that Access is uniquely
sensitive to faulty networks, you always have to
listen carefully to users, but never accept anything
they say at face value: they aren't computers, and
they aren't literal like a computer program.

(david)
"shineofleo " <li*********@gm ail.comwrote in message
news:11******** **************@ 35g2000cwc.goog legroups.com...
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 possible normal operation which could corrupt the
database? such as 'Weird characters' I guess? (The custom is from
Italy, is there any special Italian chars could do this?)

Of course it is possible that there are some bugs in the programm,
which possibly caused a error may corrupt the database file, but still,
how? The program wasn't stopped violently anyway ...

Anyone could give some idea about this? Since it is rather hard to talk
to Italians... So I can not completely investigate 'what they did about
the program'... I have to check the program and potential operations
which may corrupt the database.

Thanks a lot.

Jul 18 '06 #6
"LeonC" <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:
David W. Fenton ???
>"shineofleo " <li*********@gm ail.comwrote in
news:11******* *************** @35g2000cwc.goo glegroups.com:
So is there any possible normal operation which could corrupt
the database?

No, but bad versions of Jet on the machines using the VB app
could lead to significant risk of corruption. Jet 4 SP6 or SP8 is
required for reliable operation of Jet 4 (SP8 is the bug fix for
the useless SP7; SP7-8 add no real stability, only the security
fixes to make Jet less vulnerable to executing dangerous code).

Thank you... But we deliver the whole PC to the customer... Now I
am trying to 'recreate' the bad result just like the customer, but
no good news... sigh....
Well, lots of the corruption problems will show up only in a
multi-user scenario, so you can't expect to be able to recreate it
in a single-user scenario.

Secondly, the corruption problems could be caused by the software
configuration of the *server* on which the shared data MDB is
stored.

I would assume, of course, that you're not sharing the front end
MDB.

Check out Tony Toews excellent corruption FAQ:

http://www.granite.ab.ca/access/corruptmdbs.htm

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 18 '06 #7
Thank you guys! It is quite helpful!

Now I have narrowed down the cause to some point. I created the
corruption by shutting down the windows (normal procedure i think) with
the program running. However it is not strictly repeatable, when I try
the second time, it is normal again...

Technically, when the program is called to be closed, firstly it will
delete some 'pre-tagged' records in the database. I guess the datadase
operation is not fast enough to be completed, before the windows is
off.

My problem is how to generate the corruption by common termination of a
program... Any idea?

David W. Fenton 写道:
"LeonC" <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:
David W. Fenton ???
"shineofleo " <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:

So is there any possible normal operation which could corrupt
the database?

No, but bad versions of Jet on the machines using the VB app
could lead to significant risk of corruption. Jet 4 SP6 or SP8 is
required for reliable operation of Jet 4 (SP8 is the bug fix for
the useless SP7; SP7-8 add no real stability, only the security
fixes to make Jet less vulnerable to executing dangerous code).
Thank you... But we deliver the whole PC to the customer... Now I
am trying to 'recreate' the bad result just like the customer, but
no good news... sigh....

Well, lots of the corruption problems will show up only in a
multi-user scenario, so you can't expect to be able to recreate it
in a single-user scenario.

Secondly, the corruption problems could be caused by the software
configuration of the *server* on which the shared data MDB is
stored.

I would assume, of course, that you're not sharing the front end
MDB.

Check out Tony Toews excellent corruption FAQ:

http://www.granite.ab.ca/access/corruptmdbs.htm

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 19 '06 #8
Personally I'd log activity.

Log when they start the app, log when they stop the app. If you have more
starts than stops then they aren't exiting cleanly.
--

Terry Kreft
"LeonC" <li*********@gm ail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Thank you guys! It is quite helpful!

Now I have narrowed down the cause to some point. I created the
corruption by shutting down the windows (normal procedure i think) with
the program running. However it is not strictly repeatable, when I try
the second time, it is normal again...

Technically, when the program is called to be closed, firstly it will
delete some 'pre-tagged' records in the database. I guess the datadase
operation is not fast enough to be completed, before the windows is
off.

My problem is how to generate the corruption by common termination of a
program... Any idea?

David W. Fenton ??:
"LeonC" <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:
David W. Fenton ???
"shineofleo " <li*********@gm ail.comwrote in
news:11******** **************@ 35g2000cwc.goog legroups.com:

So is there any possible normal operation which could corrupt
the database?

No, but bad versions of Jet on the machines using the VB app
could lead to significant risk of corruption. Jet 4 SP6 or SP8 is
required for reliable operation of Jet 4 (SP8 is the bug fix for
the useless SP7; SP7-8 add no real stability, only the security
fixes to make Jet less vulnerable to executing dangerous code).
Thank you... But we deliver the whole PC to the customer... Now I
am trying to 'recreate' the bad result just like the customer, but
no good news... sigh....

Well, lots of the corruption problems will show up only in a
multi-user scenario, so you can't expect to be able to recreate it
in a single-user scenario.

Secondly, the corruption problems could be caused by the software
configuration of the *server* on which the shared data MDB is
stored.

I would assume, of course, that you're not sharing the front end
MDB.

Check out Tony Toews excellent corruption FAQ:

http://www.granite.ab.ca/access/corruptmdbs.htm

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

Jul 19 '06 #9

If you are running the backend off a server, a intermittent network
connection or flakey network card will cause corruption regularly.
Other applications seem to be able to live with a less than perfect
network connection but Access isn't so tolerant.

Hope this helps.

Jul 19 '06 #10

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

Similar topics

4
5082
by: aaj | last post by:
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
4
2204
by: Big Time | last post by:
Major fiasco on my hands here. I was in the middle of updating a record when the system halted, and the Access DB became non responsive. Eventually I had to CTRL-ALT-DEL to close the application. When I tried to open the DB again, the file has become corrupt and I get the error message "The Microsoft Jet database engine cannot find the object "Databases". I understand a database can become corrupt during an interrupted write to a...
1
1770
by: Shannon Rotz | last post by:
I have an Access XP database which just decided to corrupt, with 3 days' worth of brand-new coding in it. The regular "compact and repair" function hasn't worked in this case, and I've tried importing some of the objects into a new database but that doesn't work either. Basically, every time I try something I get a "Access has detected corruption in this file" message, followed by a "the {object type} name {object name} is misspelled or...
9
2483
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
2
2526
by: Tomas Vera | last post by:
Hello All (This is being cross-posted to the C++ group), I've started receiving the subject message during a compile of a C++ based interface module used in my C# based WebApp. This module exposes some functions from our main Windows DLL to my web app. I get the same error message whether I compile from the IDE or from our normal command line based build process. What database file does the message refer to?
0
1349
by: Tomas Vera | last post by:
Hello All (This is being cross-posted to the C# group), I've started receiving the subject message during a compile of a C++ based interface module used in my C# based WebApp. This module exposes some functions from our main Windows DLL to my web app. I get the same error message whether I compile from the IDE or from our normal command line based build process. What database file does the message refer to?
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...
3
2207
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.
0
8944
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8773
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
9445
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
9306
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
9234
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
9180
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.