I have coded a compress/repair routine (VB6) which, upon an open failure of
the Access 97 database, will run to attempt a repair before giving up and
reporting the error to a user. My problem is - how can I test it? The
compress works OK, but that is not the issue here. How can I make an Access
97 database need a repair? What makes the Jet routine decide that a database
is bad and needs to be repaired? An answer that suggests changing bits
inside the database is acceptable (I am a serious "35 years of programming"
nerd) - as long as "which bits" to change are given.
I would rather test this scenario before my users experience the problem -
lord knows there are enough "gotchas" that I haven't thought of.
Thanks!
Frank 4 1445
Try turning off your computer while Access is running an update to your
application.
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Frank" <fn*********@hotmail.com> wrote in message
news:10*************@corp.supernews.com... I have coded a compress/repair routine (VB6) which, upon an open failure
of the Access 97 database, will run to attempt a repair before giving up and reporting the error to a user. My problem is - how can I test it? The compress works OK, but that is not the issue here. How can I make an
Access 97 database need a repair? What makes the Jet routine decide that a
database is bad and needs to be repaired? An answer that suggests changing bits inside the database is acceptable (I am a serious "35 years of
programming" nerd) - as long as "which bits" to change are given.
I would rather test this scenario before my users experience the problem - lord knows there are enough "gotchas" that I haven't thought of.
Thanks!
Frank
Doug-
Thanks for the suggestion. Makes sense. However, after at least 20 tries,
it never corrupted. I wrote a tight loop (in Access) to add records - the
database increased in size from 194KB to 24000KB (+) by the time I stooped
over to turn the computer off, but no corruption. Too bad this doesn't
happen in the "real world". I am running Windows 2000, Access 97. I'll try
this on a Windows 98 machine tomorrow. I know it is possible to corrupt an
Access database - seems hard to do it on purpose.
Any more ideas?
Thanks,
Frank
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:Rb********************@rogers.com... Try turning off your computer while Access is running an update to your application.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Frank" <fn*********@hotmail.com> wrote in message news:10*************@corp.supernews.com... I have coded a compress/repair routine (VB6) which, upon an open failure of the Access 97 database, will run to attempt a repair before giving up
and reporting the error to a user. My problem is - how can I test it? The compress works OK, but that is not the issue here. How can I make an Access 97 database need a repair? What makes the Jet routine decide that a database is bad and needs to be repaired? An answer that suggests changing bits inside the database is acceptable (I am a serious "35 years of programming" nerd) - as long as "which bits" to change are given.
I would rather test this scenario before my users experience the
problem - lord knows there are enough "gotchas" that I haven't thought of.
Thanks!
Frank
Doug,
Your idea sounds reasonable. I tried it at least 20 times, but it never
corrupted the database (too bad this doesn't happen in the "real world"). I
wrote a routine (in Access) which added records in a tight loop - the size
went from 194KB to 24000KB+ before I stooped down to turn off the machine.
I am running Windows 2000, Access 97. I'll consider trying it on a Windows
98 machine, but don't know why it will be any different. "Consider" = I had
some technical difficulties unrelated to Access - turning off computer
without debooting is kinda harsh.
Any more ideas?
Thanks,
Frank
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:Rb********************@rogers.com... Try turning off your computer while Access is running an update to your application.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Frank" <fn*********@hotmail.com> wrote in message news:10*************@corp.supernews.com... I have coded a compress/repair routine (VB6) which, upon an open failure of the Access 97 database, will run to attempt a repair before giving up
and reporting the error to a user. My problem is - how can I test it? The compress works OK, but that is not the issue here. How can I make an Access 97 database need a repair? What makes the Jet routine decide that a database is bad and needs to be repaired? An answer that suggests changing bits inside the database is acceptable (I am a serious "35 years of programming" nerd) - as long as "which bits" to change are given.
I would rather test this scenario before my users experience the
problem - lord knows there are enough "gotchas" that I haven't thought of.
Thanks!
Frank
Sorry, no. It's unusual for someone to _want_ corruption! <g>
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Frank" <fn*********@hotmail.com> wrote in message
news:10*************@corp.supernews.com... Doug-
Thanks for the suggestion. Makes sense. However, after at least 20
tries, it never corrupted. I wrote a tight loop (in Access) to add records - the database increased in size from 194KB to 24000KB (+) by the time I stooped over to turn the computer off, but no corruption. Too bad this doesn't happen in the "real world". I am running Windows 2000, Access 97. I'll
try this on a Windows 98 machine tomorrow. I know it is possible to corrupt
an Access database - seems hard to do it on purpose.
Any more ideas?
Thanks,
Frank
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:Rb********************@rogers.com... Try turning off your computer while Access is running an update to your application.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Frank" <fn*********@hotmail.com> wrote in message news:10*************@corp.supernews.com... I have coded a compress/repair routine (VB6) which, upon an open
failure of the Access 97 database, will run to attempt a repair before giving up and reporting the error to a user. My problem is - how can I test it? The compress works OK, but that is not the issue here. How can I make an
Access 97 database need a repair? What makes the Jet routine decide that a database is bad and needs to be repaired? An answer that suggests changing bits inside the database is acceptable (I am a serious "35 years of programming" nerd) - as long as "which bits" to change are given.
I would rather test this scenario before my users experience the problem - lord knows there are enough "gotchas" that I haven't thought of.
Thanks!
Frank
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Roeland |
last post by:
Hello,
I added in my (MSI) installer project an advertisable shortcut, that
automatically repairs the installation when something is corrupted. It would
be more fine to have a normal shortcut,...
|
by: Paolo |
last post by:
Hi,
I am trying to compact and repair my database, however every time I try it
comes up a message saying: Table: "TempMSysAccessObject already exists",
whenever I try to look for this table I...
|
by: Microsoft |
last post by:
Hi,
Here is the problem that Iam experiencing, does anyone has a
suggestion/solution ??
I use C# .NET Deployment project to install my application, which
installs few windows Services. The...
|
by: Peteroid |
last post by:
Recently, and for reasons I don't know, the project I was working on started
to compile either very slowly, or it was locking up.
So, I repaired VS C++.NET 2005 Express via 're-installing' it...
|
by: ritenah |
last post by:
I am running this command from a .bat file.
"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR
Database repairs as expected, then shows the messge:
"Successfully repaired the...
|
by: Ron |
last post by:
Hi All,
Using WinXP pro/Access 2000.
I have a database that's been used for about 5 months. Transferred lots of
data from a dos based program, then the users have been using it for that 5...
|
by: Ron |
last post by:
New discovery.
If I take a perfectly good database, and "compact/repair" on it with Access
2000 (seems to be at multiple sites--I've tried it with my system here, at
another office on an...
|
by: Bizmark |
last post by:
Access2003,
Windows XP Pro OEM user OS,
Windows Sever 2000 server OS.
Not-so-recently I inherited 3 Access DB's from another company merging with our own. Our own system works off of SQL...
|
by: zufie |
last post by:
When I Repair/Compact my Access databse. I get icons/copies of a
database named db1.mdb, db2.mdb, db3.mdb, etc...
How else may I repair this database?
Thanks!,
Zuf
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
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...
| |