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

size of database

I use a MS ACCESS database with the size of 250MB. The dababase consists of
60 tables and no other objects. The objects in this database can not be
changed. I wanted to reduce the size of database and deleted about 50% of
records in all 60 tables but the size of this database remains 250MB. Could
someone tell me why and how to reduce it.

Thanks
Nov 13 '05 #1
10 2401
Try:
Tools | Database Utilities | Compact

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"john_liu" <jo******@charter.net> wrote in message
news:lD*******************@fe06.lga...
I use a MS ACCESS database with the size of 250MB. The dababase consists of
60 tables and no other objects. The objects in this database can not be
changed. I wanted to reduce the size of database and deleted about 50% of
records in all 60 tables but the size of this database remains 250MB.
Could someone tell me why and how to reduce it.

Nov 13 '05 #2
john_liu wrote:
I use a MS ACCESS database with the size of 250MB. The dababase consists of
60 tables and no other objects. The objects in this database can not be
changed. I wanted to reduce the size of database and deleted about 50% of
records in all 60 tables but the size of this database remains 250MB. Could
someone tell me why and how to reduce it.


If you're on Access 2000 or greater:

Got to tools->database utilities->compact and repair database

The access database engine, MS Jet, does not surrender climed space when
records are deleted. The above process is required. Even without
deleting any records, the above process should reduce the size as the
database tends to bloat a bit depending on the activities performed.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #3
Tim Marshall wrote:
john_liu wrote:
I use a MS ACCESS database with the size of 250MB. The dababase
consists of 60 tables and no other objects. The objects in this
database can not be changed. I wanted to reduce the size of database
and deleted about 50% of records in all 60 tables but the size of
this database remains 250MB. Could someone tell me why and how to
reduce it.

If you're on Access 2000 or greater:

Got to tools->database utilities->compact and repair database

The access database engine, MS Jet, does not surrender climed space when
records are deleted. The above process is required. Even without
deleting any records, the above process should reduce the size as the
database tends to bloat a bit depending on the activities performed.


Are deleted records the only source of bloat? Does the running of
queries add to bloat too? Maybe creating temp queries, running, then
deleting?
Nov 13 '05 #4
> I use a MS ACCESS database with the size of 250MB. The dababase consists
of
60 tables and no other objects. The objects in this database can not be
changed. I wanted to reduce the size of database and deleted about 50% of
records in all 60 tables but the size of this database remains 250MB. Could someone tell me why and how to reduce it.


Is 250MB all that bad? Are you experiencing performance problems? How is
the size a problem?
Nov 13 '05 #5
Salad wrote:
Are deleted records the only source of bloat? Does the running of
queries add to bloat too?
I don't think queries do...or at least not significantly compared to
form development, say. Most of my work is gainst Oracle, though I've
been doing a hobby project in Jet and I find my back end does not bloat
at all like the front end. Bloat in A2003 is ridiculous compared to
what I was used to in A97 and the decompile really, really is nearly
compulsory.
Maybe creating temp queries, running, then
deleting?


I know this does for certain, when you actually append a querydef to the
querydef collection. The Oracle projects I was doing a few years ago in
A97 featured pass-through queries I would delete after a session and
those apps do bloat a fair bit.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #6

"Salad" <oi*@vinegar.com> wrote in message
news:UP****************@newsread3.news.pas.earthli nk.net...
Tim Marshall wrote:
john_liu wrote:
I use a MS ACCESS database with the size of 250MB. The dababase consists
of 60 tables and no other objects. The objects in this database can not
be changed. I wanted to reduce the size of database and deleted about
50% of records in all 60 tables but the size of this database remains
250MB. Could someone tell me why and how to reduce it.

If you're on Access 2000 or greater:

Got to tools->database utilities->compact and repair database

The access database engine, MS Jet, does not surrender climed space when
records are deleted. The above process is required. Even without
deleting any records, the above process should reduce the size as the
database tends to bloat a bit depending on the activities performed.


Are deleted records the only source of bloat? Does the running of queries
add to bloat too? Maybe creating temp queries, running, then deleting?

Dirty little secret: Nothing can stop Access bloat! You can read all the
MS literature on the problem and try their all their suggested fixes but
nothing will stop the bloat. And every version of Access bloats. The only
thing that changes with each version is the excuse for the bloat.

Nov 13 '05 #7
GoJo4 wrote:
Dirty little secret: Nothing can stop Access bloat! You can read all the
MS literature on the problem and try their all their suggested fixes but
nothing will stop the bloat. And every version of Access bloats. The only
thing that changes with each version is the excuse for the bloat.


Its not quite that bad. There are just certain activities that increase the file size at a
quicker pace. Importing data, creating temporary tables or queries, etc. And sometimes bad
programming practices (not closing recordsets for example).

The Compact utility can help manage this by reclaiming the disk space of deleted objects
and data. There are techniques to minimize the problem (don't store images in a .mdb file,
use temp tables in a temp database, etc.)

Of course if this is a persistent problem then perhaps a more sophisticated DBMS is needed
like Oracle or DB/2.

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #8
> Its not quite that bad. There are just certain activities that increase
the file size at a
quicker pace. Importing data, creating temporary tables or queries, etc. And sometimes bad programming practices (not closing recordsets for example).


A bit off topic, but in regard to closing DAO recordsets - is it sufficient
to do this:

Set rst = Nothing

or do we need to explicitly close the rst first like this:

rst.Close
Set rst = Nothing

I remember reading somewhere that the first way will close the rst as the
object is destroyed, but I'd be interested in other folk's thoughts about
this.
Nov 13 '05 #9

"deko" <de**@deko.com> wrote
A bit off topic, but in regard to
closing DAO recordsets - is it
sufficient to do this:

Set rst = Nothing

or do we need to explicitly close the rst first like this:

rst.Close
Set rst = Nothing


Setting to Nothing is supposed to be automatically done when the object goes
out of scope, but hasn't always worked well, smoothly, and/or consistently.
Since it is "for safety's sake", I don't rely on what is "supposed to happen
if all goes well" but use both the Close and Set to Nothing.

And, yes, as a matter of fact, I do wear both a belt and suspenders. <GRIN>

Larry Linson
Microsoft Access MVP
Nov 13 '05 #10
> > A bit off topic, but in regard to
> closing DAO recordsets - is it
> sufficient to do this:
>
> Set rst = Nothing
>
> or do we need to explicitly close the rst first like this:
>
> rst.Close
> Set rst = Nothing
Setting to Nothing is supposed to be automatically done when the object

goes out of scope, but hasn't always worked well, smoothly, and/or consistently. Since it is "for safety's sake", I don't rely on what is "supposed to happen if all goes well" but use both the Close and Set to Nothing.

And, yes, as a matter of fact, I do wear both a belt and suspenders.

<GRIN>

10-4.
Nov 13 '05 #11

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

Similar topics

19
by: dchow | last post by:
Our database size is currently 4G and is incrementing at a rate of 45M/day. What is the max size of a SQL database? And what is the size beyond which the server performance will start to go down?
7
by: Bart Torbert | last post by:
Hello, I am starting to examine using SQLServer instead of Oracle. I went through the SQLServer import utility to copy tables from Oracle into SQLServer. I then checked the size of the...
5
by: Anand | last post by:
Hi all Please help me to find out table size in MS-SQL how can I count or identify, this specific table is using some xyz kb of space of my hdd. thanks
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
3
by: Knick via AccessMonster.com | last post by:
I am novice to MS Access Development, I regularly back my access database every 2, 3 days ...today when I was going to back my database I saw the access file on the network drive was only 9 MB...
4
by: vijay.db | last post by:
Hi Group, It's really confusing to calculate the size of the DB2 UDB database in versions lesser than 8.2. In Version 8.2 if we run the query db2 "call get_dbsize_info(?,?,?,0)" it gives us...
2
by: Bob | last post by:
Hi all, My databases seem to become corrupted as soon as they reach 2GB. Once it does become corrupted the only fix is to create a new database and transfer everything into that. I need to...
7
by: yellr | last post by:
Hi, i've spent all resources, except this one. Hopefully anyone there out could help me with a idea for this problem. We have a db2 8.2 Enterprise Edition, on AIX 5.3 Platform, this is our...
6
by: Marcolino | last post by:
Hi all, I have a simple problem but I don't know which is the best way to solve it. I need to savo into a table into access DB the location and the size of a form. Is there a way to save...
5
by: aleu | last post by:
Hi all, Could you please advise whether there are documents describing impact of MS SQL server 2005 database size on its performance? I have essentially two things in mind when writing the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.