473,396 Members | 2,033 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,396 software developers and data experts.

Scripting an Archive on multiple MDB files

Hi Guys,

We have about 11,000 MDB files that need to have some records that are older than 12 months archived out. I've run through the Guides and manually create an Append Query and Delete Query but this will obviously take some time to do every database manually. Is there an easy way to script he Queries so that we can just run a batch file that will open each file and run the queries and then close again??

Thanks for your help in advance.
Regards,
Dave
Sep 23 '07 #1
4 1522
barry07
47
Presumambly there is a date field in each table that you use to determine which records are to be archived? If it has the same name in all tables then you can use the TableDef object to generate an Append and Delete query for each table.

If the date field is not named consistently you can still use this approach by identifying the TableDef field which has datatype = 8 (date). However, if there is more than one date field in the table it could be tricky.

HTH
Sep 24 '07 #2
Hi Barry,

Thanks for your reply and yes there is a date field thats used which I can manually create an Append and Delete Query but I need to be able to replicate this task to run over lots of different MDB files.

Unfortunately I'm a bit of a noob at Access, so any help is greatfully received.
Sep 24 '07 #3
UKDisco,

In order to handle such tasks for my own mdb databases, I put together a small utility project that I just got permission to release as an open source project. I have never tried it on 11,000 MDBs (about 100 is the limit I have tested).

Mult MDB SQL

This small SQL monitor executes sequential SQL commands in the open databases.

I have separate MDB database files for each of my clients, but the databases all have the same schema and share some common tables. This tool lets me work with all of them at once.

Tom
Oct 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Aladdin | last post by:
I am using the java.util.zip package to create zip files. I can create a new archive and add files to it without any trouble. But if I already have a zip file created, how do I add a new file to...
8
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and...
1
by: DB2 Convert | last post by:
Hi, A few points to confirm as I am still new with DB2. 1. What will happen if archive logging is used, however there is no userexit or manual process to move those online archived logs to...
6
by: JezB | last post by:
From a windows application, I want to provide an "archive" facility which will scan a specific directory and put specific files into some single "Archive file", a bit like a zip-file I guess, but...
7
by: Enigma Curry | last post by:
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. ...
10
by: A.M | last post by:
Hi, I am having difficulty with shell scripting in Python. I use the following command to run a DOS command and put the return value in a Python variable:
1
by: dwainew | last post by:
Problem: I'd like to archive off the contents of a text file. However, other processes may have the file open, so MoveTo(newfilepath) can't be done, as far as I've found. Start with a 5 MB...
3
by: Kofa | last post by:
Hi, we have an application which uses online backups, so archive logging is a requirement. We have a small/moderate size database (a few hundred megabytes isn't much by today's standards) with...
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: 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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.