![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
For our project, we need to have a history table for almost every table in the data model. the history table mirrors the original and has a couple of extra columns like date, transaction type and username. There are two ways of populating the history tables: 1) Populate a history table right after any Insert, Update or Delete with the just entered data. 2) Populate a history table just before any update or delete with the data that will be overwritten. Is there any reason other than personal preference to choose one method over the other? Could someone point me to someplace that treats this issue and others relating to history tables in a formal manner? |
#3
| |||
| |||
|
|
For our project, we need to have a history table for almost every table in the data model. the history table mirrors the original and has a couple of extra columns like date, transaction type and username. There are two ways of populating the history tables: 1) Populate a history table right after any Insert, Update or Delete with the just entered data. |
|
2) Populate a history table just before any update or delete with the data that will be overwritten. Is there any reason other than personal preference to choose one method over the other? Could someone point me to someplace that treats this issue and others relating to history tables in a formal manner? Thanks. |
#4
| |||
| |||
|
|
For our project, we need to have a history table for almost every table in the data model. the history table mirrors the original and has a couple of extra columns like date, transaction type and username. There are two ways of populating the history tables: 1) Populate a history table right after any Insert, Update or Delete with the just entered data. 2) Populate a history table just before any update or delete with the data that will be overwritten. Is there any reason other than personal preference to choose one method over the other? Could someone point me to someplace that treats this issue and others relating to history tables in a formal manner? |
![]() |
| Thread Tools | |
| Display Modes | |
| |