Hello everyone,
In the context of a feasibility study, we are exploring different ways to achieve a quite simple objective: for a specific database, display and process only five years old data, based on table level criteria (creation/modification date field name may vary from table to table). Naturally, it is possible to change all queries triggered from all applications and stored procedures with a relevant WHERE clause but this option represents a huge workload. Likewise, we could apply filters on each application using and displaying data but we would then retrieve a huge amount of data, by not only considering five years old data, which would then cause a performance issue.
We are then investigating in a server-side solution that would filter data from all tables without updating all queries triggered by multiple applications and SQL jobs. Is it possible to force all queries occuring on a specific database to be filtered? Is there another way to achieve the same objectif? For instance, by using a filtered merge replication? Any other proposal is welcome!
For information, data older than five years are not needed anymore and are then elligible to physical deletion.
Thanks in advance!
J&B