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

Archiving data

Could some one give me some pointers on basic archiving techniques? I have
developed several databases but never been faced with this issue. Here is
the basic scenario..

Suppose I have the following two tables tblCustomers and tblOrders. I want
to archive all orders over two years old.

Is this how it is done?:
Archiving:
----------
I run a query to move all matching rows from tblOrders in the main.mdb into
the tblOrders in the archive.mdb.
I put the current date in the ArchivePerformed field of tblArchiveDate to
date stamp the event.
Querying archived data:
------------------------
If the following query is run by a user:
SELECT tblOrders.*
FROM tblOrders
WHERE (((tblOrders.OrderDate) Between #1/1/2000# And #1/1/2006#));
Should I only show non-archived results and warn the user that archived data
exists that matches the query?
Should I get clever and pull all the data together into a temp table and do
stuff with it?

Am I way off will how to set up archiving and build a UI for it? How do you
implement and manage archiving?

Paul
Jul 14 '06 #1
4 2491
You talk to the customer and see how they want it implementing.

The point of archiving is to reduce the number of records in the table and
so increase performance, so the likelihood of the customer wanting you to
automatically pull records from the archive is low as this will hit
performance, although they will probably want a method of reviewing or even
restoring archived records.

The usual things you want to do are
Transfer data from the live tales to the archive tables
Delete/Mark as archived the records in the live tables
Update your archived diary.

The best way is to use a transaction so that either it all works or none of
it works.

--

Terry Kreft
"Paul H" <no****@nospam.comwrote in message
news:Q6********************@eclipse.net.uk...
Could some one give me some pointers on basic archiving techniques? I have
developed several databases but never been faced with this issue. Here is
the basic scenario..

Suppose I have the following two tables tblCustomers and tblOrders. I want
to archive all orders over two years old.

Is this how it is done?:
Archiving:
----------
I run a query to move all matching rows from tblOrders in the main.mdb
into
the tblOrders in the archive.mdb.
I put the current date in the ArchivePerformed field of tblArchiveDate to
date stamp the event.
Querying archived data:
------------------------
If the following query is run by a user:
SELECT tblOrders.*
FROM tblOrders
WHERE (((tblOrders.OrderDate) Between #1/1/2000# And #1/1/2006#));
Should I only show non-archived results and warn the user that archived
data
exists that matches the query?
Should I get clever and pull all the data together into a temp table and
do
stuff with it?

Am I way off will how to set up archiving and build a UI for it? How do
you
implement and manage archiving?

Paul


Jul 14 '06 #2
"Paul H" <no****@nospam.comwrote in
news:Q6********************@eclipse.net.uk:
Could some one give me some pointers on basic archiving
techniques?
No, because I've never archived any data in any of my applications.

Why would anyone ever do that? If you have so much data that
Access/Jet chokes on it, then you should migrate to a different back
end.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 14 '06 #3
Have a read of Allen's site about the topic:
http://allenbrowne.com/ser-37.html

Mark

"Paul H" <no****@nospam.comwrote in message
news:Q6********************@eclipse.net.uk...
Could some one give me some pointers on basic archiving techniques? I have
developed several databases but never been faced with this issue. Here is
the basic scenario..

Suppose I have the following two tables tblCustomers and tblOrders. I want
to archive all orders over two years old.

Is this how it is done?:
Archiving:
----------
I run a query to move all matching rows from tblOrders in the main.mdb
into the tblOrders in the archive.mdb.
I put the current date in the ArchivePerformed field of tblArchiveDate to
date stamp the event.
Querying archived data:
------------------------
If the following query is run by a user:
SELECT tblOrders.*
FROM tblOrders
WHERE (((tblOrders.OrderDate) Between #1/1/2000# And #1/1/2006#));
Should I only show non-archived results and warn the user that archived
data exists that matches the query?
Should I get clever and pull all the data together into a temp table and
do stuff with it?

Am I way off will how to set up archiving and build a UI for it? How do
you implement and manage archiving?

Paul

Jul 14 '06 #4
Thanks folks, all very helpful answers...I need to talk to the client now.

Paul
Jul 14 '06 #5

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

Similar topics

5
by: SunSmile | last post by:
Hi, I am logging my exceptions to a word document(*.doc). After the size of word document is 5KB. I am archiving the word document to *.doc.1 Here when I am archiving the word document to...
1
by: Sally Ruggero | last post by:
I need advice on archiving data from our production database. Each night I would like to save and remove a day's data from two weeks ago, from all the tables. I know how to delete the...
4
by: Geoff | last post by:
I want to archive records from one recordset to another recordset. Not too sure of what to do in commented areas shown below. Dim Db As DAO.Database Dim Rec1 As DAO.Recordset 'Set as...
1
by: sandip | last post by:
Hi All, Can someone please help me with good and easy-to-use data archiving tools for DB2 database? Does anyone have previous experience with IBM DB2 Data Archive Expert tool? Is this a...
3
bvdet
by: bvdet | last post by:
Following is an example that may provide a solution to you: """ Function makeArchive is a wrapper for the Python class zipfile.ZipFile 'fileList' is a list of file names - full path each name...
4
by: mforema | last post by:
Hi Everyone, I have a database that currently has two types of tables: one type has all of the current data, and the other type has all of the previous, outdated data. I already have command...
4
by: eliane | last post by:
For some reason, DB2 is taking a long time to start archiving the logs. Pls, do you know what could be causing it? I see the following msgs on db2diag.log 2008-09-04-00.36.24.414103+000...
1
by: cleary1981 | last post by:
Hi, I have created a database that logs realtime data and stores 1440 records per day in my database. This system must log data 24hrs a day and always running. My fear now is that my db will...
3
nurikoAnna
by: nurikoAnna | last post by:
how to data archiving? I need you help I have no idea how to start coding data archiving . Please help
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.