Compressing Access files from within VB code 
Author Message
 Compressing Access files from within VB code

Hi!

As Access databases (*.mdb) tend to get bigger and bigger, Access itself

as a feature that compresses the database. What does this feature do? Is

this an integral part of the JET engine or is it just a "SELECT * INTO
xyz FROM abc" ?

Thx
chris



Mon, 19 Jun 2000 03:00:00 GMT  
 Compressing Access files from within VB code

You can, in some respects, look at an Access application as though it were
a gigantic database.  When you delete an object, the information about the
object does not immediately get removed from the file, rather it gets
marked as deleted, just like deleted records in a database table are not
immediately removed.  The compact operation of Access performs the actual
housekeeping, physically removing deleted information and reordering the
mdb to the most efficient structure.  So the mdb does not actually get
"compressed" except in the sense that throwing away the deleted info
reduces the file size; it is not like an actual "pkzip"-type compression of
bytes..
--
Pete B



Quote:
> Hi!

> As Access databases (*.mdb) tend to get bigger and bigger, Access itself

> as a feature that compresses the database. What does this feature do? Is

> this an integral part of the JET engine or is it just a "SELECT * INTO
> xyz FROM abc" ?

> Thx
> chris



Mon, 19 Jun 2000 03:00:00 GMT  
 Compressing Access files from within VB code

On Thu, 01 Jan 1998 13:00:13 +0100 in comp.databases.ms-access,

Quote:
>Hi!

>As Access databases (*.mdb) tend to get bigger and bigger, Access itself

>as a feature that compresses the database. What does this feature do? Is

>this an integral part of the JET engine or is it just a "SELECT * INTO
>xyz FROM abc" ?

I assume you mean "Compact".

It purges out space left over by deleted objects.
This should be done on a regular basis, like defragging your hard disk,
it effectively defrags your database as well (makes all tables
contegous).

                    \|||/
                    /   \
                   C o o D
-----------------ooO--u--Ooo-------------------------------
To reply my mail, replace the "nospam" in my address with "trevor",
this was put on in defence of the spam robots that roam usenet.

MS Access FAQ now available on my site below.
http://easyweb.easynet.co.uk/~trevor/

Apathy Error: Don't bother striking any key.



Tue, 20 Jun 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Sample Code Needed to Compress a MS Access file from code in a VB 6 program

2. how to compress files from within the code

3. how to compress a file from within the code

4. Compressing Access databases from within VB 5.0

5. Compressing to Zip files within VBA

6. Backing up / compressing a data file from within an app

7. Compressing a file from within VBS

8. Compressing An Access Database File From VB

9. Compressing in Compress.exe format through code

10. ZIP files from within Access code

11. Open different database file within Access using code

12. Accessing VB code within Javascript

 

 
Powered by phpBB® Forum Software