Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Archiving records
In my application I would like to archive old records in an Invoice table to make it more manageable. Do any of you have some suggestions on what has worked well for you in some of your applications? My initial thoughts are to do the following:
1) Create table to place archived data
2) Select records to archive
3) Loop through records
4) Copy record to archive table
5) Delete from active table
I'd like to hear any tips you may have.
1) Create table to place archived data
2) Select records to archive
3) Loop through records
4) Copy record to archive table
5) Delete from active table
I'd like to hear any tips you may have.
Comments
If you intend this to be a regularly used utility - presumably one that you will hook up to your main application window in some way - then I suspect you'll want this to be a little more elegant. How important is it for you to track progress (e.g., a progress bar)? Is it sufficient to just start the process and show a wait cursor or some kind of wait banner?