Shamshad Ali
2009-08-31 14:33:50 UTC
I have two databases Frontend and backend. All data of years since the db
started working is kept in Backend (you can say it as historical data or
achieving and for reporting purpose data.)
The frontend database is used for users live insertions/transactions in this
database. We only have to keep last 7 days data into this (frontend)
database and rest of the data will be moved to Backend database on daily
bases. This way we will have only last 7 days data into Frontend db.
There are master and detail tables in Frontend and its structure would be
same as in Backend database. We want data should be consistent. I would like
to know how do I do this job?
Either DTS or Logshipping or write a custom stored procedure to take a copy
of whole live data of last 7 days and update in backend.
Is there any logic we can build to solve this problem or does anyone has
done such kid of job before? Remember that the last 7 days data could be
updated because of the business logic that if a session remains open for few
days the session end time would be going to update in last few days. That's
why we are keeping atleast last 7 days data in frontend db.
started working is kept in Backend (you can say it as historical data or
achieving and for reporting purpose data.)
The frontend database is used for users live insertions/transactions in this
database. We only have to keep last 7 days data into this (frontend)
database and rest of the data will be moved to Backend database on daily
bases. This way we will have only last 7 days data into Frontend db.
There are master and detail tables in Frontend and its structure would be
same as in Backend database. We want data should be consistent. I would like
to know how do I do this job?
Either DTS or Logshipping or write a custom stored procedure to take a copy
of whole live data of last 7 days and update in backend.
Is there any logic we can build to solve this problem or does anyone has
done such kid of job before? Remember that the last 7 days data could be
updated because of the business logic that if a session remains open for few
days the session end time would be going to update in last few days. That's
why we are keeping atleast last 7 days data in frontend db.