473,385 Members | 1,429 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,385 software developers and data experts.

Why the size become smaller after the fix of corruption?

The corrupted access database file was 200MB, but after it was fixed by
Access, it was reduced to 75 MB.

My question: is there any other way to compress the database ( say 200
MB ) to 75 MB? or there is something wrong inside this corruptied
database file?

Unfortunately I can't remember the size of the correct database file
before it was corrupted... is it possible that the corruption cause a
boost of the size?

Jul 21 '06 #1
6 1320
On 21 Jul 2006 03:51:46 -0700, "LeonC" <li*********@gmail.comwrote:
>The corrupted access database file was 200MB, but after it was fixed by
Access, it was reduced to 75 MB.

My question: is there any other way to compress the database ( say 200
MB ) to 75 MB? or there is something wrong inside this corruptied
database file?
You should Compact and Repair your database regularly. You can set your database to Compact on Close (look through the
Tools - Options settings for this).
>Unfortunately I can't remember the size of the correct database file
before it was corrupted... is it possible that the corruption cause a
boost of the size?
Sure it does. Corrupt dbs are often a LOT bigger than their "normal" size.

There's also a Decompile switch you can use to help manage this. See this link for useage, and make sure to click on the
Michael Kaplan link found there for full information before using this switch:

http://www.mvps.org/access/bugs/bugs0008.htm

When I use /Decompile, I always (a) decompile, (b) compile (VBA Editor, click Tools - Compile), then (c) Compact and
Repair. Don't know if this is the "recommended" method, but it's always worked for me.

As always, make SURE to make a copy of your original db before trying any of this.

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jul 21 '06 #2
Scott McDaniel <scott@NoSpam_Infotrakker.comwrote in
news:k6********************************@4ax.com:
You should Compact and Repair your database regularly. You can set
your database to Compact on Close (look through the Tools -
Options settings for this).
This is a very bad idea, because some forms of corruption can lose
data. If you have Compact On Close turned on, you don't get a chance
to close without compacting.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 21 '06 #3
Scott McDaniel <scott@NoSpam_Infotrakker.comwrote in
news:k6********************************@4ax.com:
You should Compact and Repair your database regularly. You can set
your database to Compact on Close (look through the Tools -
Options settings for this).
Oh, and another thing:

If your application is properly designed, you'll only be compacting
the front end, anyway, and there's no data in that, so I see Compact
On Close as completely and utterly useless.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 21 '06 #4
Scott McDaniel <scott@NoSpam_Infotrakker.comwrote in
news:k6********************************@4ax.com:
When I use /Decompile, I always (a) decompile, (b) compile (VBA
Editor, click Tools - Compile), then (c) Compact and Repair. Don't
know if this is the "recommended" method, but it's always worked
for me.
You should:

1. decompile.

2. in a different Access instance, compact.

3. compile.

4. compact.

It's essential to not skip step 2 in order to clean out the
discarded code pages. I don't know that Access would ever re-use
discarded pages in recompiling, but if you've compacted, there's no
possibility of that happening accidentally, as the discarded
compiled code pages no longer exist.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 21 '06 #5
Thanks for the clarifications, David.

On Fri, 21 Jul 2006 08:01:15 -0500, "David W. Fenton" <XX*******@dfenton.com.invalidwrote:
>Scott McDaniel <scott@NoSpam_Infotrakker.comwrote in
news:k6********************************@4ax.com :
>When I use /Decompile, I always (a) decompile, (b) compile (VBA
Editor, click Tools - Compile), then (c) Compact and Repair. Don't
know if this is the "recommended" method, but it's always worked
for me.

You should:

1. decompile.

2. in a different Access instance, compact.

3. compile.

4. compact.

It's essential to not skip step 2 in order to clean out the
discarded code pages. I don't know that Access would ever re-use
discarded pages in recompiling, but if you've compacted, there's no
possibility of that happening accidentally, as the discarded
compiled code pages no longer exist.
Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jul 21 '06 #6
On Fri, 21 Jul 2006 07:59:25 -0500, "David W. Fenton" <XX*******@dfenton.com.invalidwrote:
>Scott McDaniel <scott@NoSpam_Infotrakker.comwrote in
news:k6********************************@4ax.com :
>You should Compact and Repair your database regularly. You can set
your database to Compact on Close (look through the Tools -
Options settings for this).

Oh, and another thing:

If your application is properly designed, you'll only be compacting
the front end, anyway, and there's no data in that, so I see Compact
On Close as completely and utterly useless.
True. The backend would rarely be opened and closed in a properly designed app ... better to have this done manually on
a set schedule (along with daily backups, I presume).

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jul 21 '06 #7

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

Similar topics

9
by: lombrozo | last post by:
Hi, I'd like to ask all of you experienced, well-structured, Object-Oriented programmers out there about function size. I am using Visual C++ to create an application, everything is nicely...
1
by: willie | last post by:
Hi all: I restored one backup database (7.9 GB mdf) on two diffrent servers. I shrunk them by clicking "Move pages to beginning of file before shrinking". After shrinking, one mdf file is 6.7...
12
by: Dan | last post by:
Hi, I just started using this DTD statement (auto-inserted by Dreamweaver MX 2004): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ...
7
by: mef526 | last post by:
I have had this problem for months now and it has been nagging me. I have a large project that has several C++ DLL's, one of them uses malloc / calloc / free for the other DLL's. I process very...
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
4
by: JohnSmith90 | last post by:
Wheh I make the following statement, what is the unit for the font size. <td colspan='1' bgcolor='#F4F4F4'><font face='Verdana' size='1'><b>TestData</b></font></td> Thank you very much for...
45
by: charles.lobo | last post by:
Hi, I have recently begun using templates in C++ and have found it to be quite useful. However, hearing stories of code bloat and assorted problems I decided to write a couple of small programs...
9
by: Notebooker | last post by:
Hello, I'm an intermediate noob reading-in data from ascii-file using an ifstream object. I have specified a c-style string buffer with size of type size_t and I am specifying to use this...
71
by: Mark | last post by:
Sorry if the question is a bit basic. I generally express my font sizes in pixels, originally to handle the Macintosh/Windows font size differences (though I believe that they both now treat...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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 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.