Question Empty File Sizes

DreamGenius

Annoying Questionner
Local time
Today, 06:03
Joined
Jul 29, 2004
Messages
116
Does anybody know (where I can find) the sizes of empty database files for the various versions of MS Access?

I'm doing an audit of databases for a client, to reduce network storage, and obviously empty databases are worthless, so can be deleted.

Thanks in advance
 
This will do you no good... A2002 is 96kb...

A database can be empty and still take up 1 gig on the network... The only way to know for sure if it is beeing used is look at the date modified. and/or "open" it up using some code and see what objects there are.
 
namliam

I agree your point but I'm looking at a list of 2,751 databases already and the search isn't finished. Armed with the information that a Version 10 database is 98Kb when first created, every Version 10 database that is 98Kb can be culled without worrying.
 
Not necessarily... Front end databases with little forms/code may not increase (much) in size (I am not positive)

What we did for our network cleanup, is make sure we have a backup of all files (usually made once a week or once a month anyway) and made a backup-backup-backup of that tape, keeping one version on hand instead of putting it in storage.

Then we just deleted any database older than 6 months including some pretty big ones.
Send out a notice to the business telling them if they needed anything contact IT.
As well as leaving a notepad txt file in place of the DB telling them the same. Sure enough the first weeks we got a few requests but ended up with 100 gig in databases less.

After 6 months we removed the txt files too and repeated the process with word/excel and powerpoint files.
 
Interesting alternative method. I'm happy to proceed on the assumption that adding the very simplest of table, query or form to the database will change the size from the default though.
 
out of interest, how on earth do you get 2700 databases?

if users are creating databases for test reasons, perhaps you could not give them privileges to do this on the server - make them create them locally, unless they can justify a network version
 
Our method for testing whether a file is still in use is a two-part process. I'll summarize how I would apply the process to what you described.

First, we get someone in authority to send out a fairly wide-ranging message saying you will be looking to remove obsolete databases that are unused in the last x months. Warn that if no one claims the database after you mark it, the next monthly cycle of marking old databases will remove all marked files.

Then, we would look for the date of last modification. You can do this from within Access using the File System Object (q.v. in Access Help; a.k.a. FSO) and find all files for which the DateDiff between NOW() and the last modification date is > 3 months or 6 months or pick your favorite time limit. Whatever you use for X, state that time interval.

Mechanically, if you haven't used it, FSO allows you to search files by name and generate a collection. You can then do a "For Each" loop in VBA to process the files found by the FSO search. Each file's attributes are available to you when you select the file out of the FSO collection, so date of last modification should be there.

Next we change the permissions on all files not modified more recently than our cutoff date. (Not sure whether you can do that so easily from Access via FSO, but you can at least build a list of all files showing fully qualified path - 'cause FSO gives you that.)

Then we do this again next month, creating a sliding window of files that weren't selected before, but ARE selected now. This leads to two lists eventually. One list is the files that are x+1 months old and ripe for backup and deletion. The other is the list of files that are ready to be write-locked. Or, in fact, READ locked. You can mark the file to be READ/WRITE locked and still have it visible, because the ability to see the file in a directory listing is a function of the permission on the directory, not on the file itself.

OK, so in the case where the database is legit and still should be active, the user tries to access the DB and can't get there from here - 'cause it is locked by permissions. So the user has to call your department and whimper constructively about why this file should still be available. At this point you get to be the user's friend by unblocking the file.

Once this behavior has been published for a while and things start falling off your server due to age, the message will get around. And if it doesn't, ... hey, you gave them a warning. You can't help it if they can't read their own e-mail.
 

Users who are viewing this thread

Back
Top Bottom