Listing 'last used' date

  • Thread starter Thread starter Mike MacKinnon
  • Start date Start date
M

Mike MacKinnon

Hi folks. We have literally hundreds of databases and my boss wants me to try
and produce a listing where we can idenatify the tables etc., and link a
'last used' date, in order to delete those that are no longer used.

Has anyone any ideas about how to go about this?
 
Mike said:
Hi folks. We have literally hundreds of databases and my boss wants
me to try and produce a listing where we can idenatify the tables
etc., and link a 'last used' date, in order to delete those that are
no longer used.

Has anyone any ideas about how to go about this?

I don't think there is such a property that coudl be used reliably for this. My
suggestion...

Rename any table that you suspect is no longer in use to ExisitingTableName_DROP
and wait a few weeks. If nobody reports errors then that raises the odds that
the table is in fact not being used. Import those tables into a separate file
and then delete them from your present file. If later on you discover that some
of the removed tables are actually needed you can re-import them from your
backup file.
 
On Tue, 18 Dec 2007 04:27:00 -0800, Mike MacKinnon

You can iterate over an entire drive (e.g. using Dir) and look for
MDBs. When found, record their DateCreated and DateUpdated properties
(I think you have to use the FileSystemObject for that).

-Tom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top