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 1475
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*********@ho tmail.com> wrote in message
news:10******** *****@corp.supe rnews.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_djsteel e@NOSPAM_canada .com> wrote in message
news:Rb******** ************@ro gers.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*********@ho tmail.com> wrote in message news:10******** *****@corp.supe rnews.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_djsteel e@NOSPAM_canada .com> wrote in message
news:Rb******** ************@ro gers.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*********@ho tmail.com> wrote in message news:10******** *****@corp.supe rnews.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*********@ho tmail.com> wrote in message
news:10******** *****@corp.supe rnews.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_djsteel e@NOSPAM_canada .com> wrote in message news:Rb******** ************@ro gers.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*********@ho tmail.com> wrote in message news:10******** *****@corp.supe rnews.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, but I understood that this is not
possible without using Orca.
My installation project contains a custom action to start the application
after installation. However, now when I start the application with the
advertisable shortcut (and there is...
|
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 cannot find it anywhere... Any
clues...
Already went into the help file and nothing...
Also try to copy my database and the same message comes up
|
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 following are the sequence of steps to
simulate the problem
1) INSTALL the Application by clicking the setup.exe. Because 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 without first
removing it. The repair worked, and the project now compiles in a timely
manner.
My question is this. After the offer to download the Express versions for
free has expired (Nov 2006), will some means to repair the ones we have...
|
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 ..." and you have to click "Ok" to get rid
of the message so that the database can close.
How does one suppress this message, so that the database shuts down
| |
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
months. About 180000 records in one of the main files (maybe 25000 new since
the dos conversion). Been having some speed issues crop up along the way
(much faster to do same reports when I first transferred the data than now,
with the new 25000...
|
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 entirely different network), it damages the file
somehow. The user's machine that did the compact/repair can see the file
fine. But any networked user can't get in. I can double click on a good
database file from any user (over the network) and it...
|
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 server, but mainting these databases is critical to keeping the business running. 1 database in particular has been causing problems. Along the course we have had a few problems with random records corrupting (new and old) and Values within fields...
|
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: 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,...
|
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...
| |
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |