I'm able to implement trigger on user define table but not on system table (log_shipping_primaries
and log_shipping_secondaries
), it store info about when the backup .bak
file was generated and when the transaction log ship file .trn
file was copied and restored at secondary database
Objective : to implement RPO (recovery point objective) > 15 min at secondary database (DR site)
I was given a task to monitor log_shipping activities
and provide historical data to higher management. Now the problem is these 2 tables is that it updates the old entry (for a given database) every time whenever a new entry is added.
Solution (does not work in SQL Server 2000): whenever a new entry is inserted, insert the similar data in user define table via trigger so as to keep historical data.
- how to implement trigger on system table (what permission do I need) or is it possible at all (please be precidse)?
- alternative to trigger like stored procedure or something(I've no experience in stored procedure)