Using a repository is a good idea for sure, but what about a solution that can help even if an 'intruder' had bypassed it and changed a class, e.g., on production server? Here is one which answers who changed SomeClassName.CLS; this code can be executed in "%SYS" namespace using System Management Portal/SQL:
SELECT DISTINCT TOP 1 s.UTCTimeStamp, s.OSUsername, s.Username, s.Description FROM %SYS.Audit as s WHERE s.Event='RoutineChange' AND s.Description LIKE '%SomeClassName.cls%' ORDER BY s.UTCTimeStamp desc
It's easy to adapt it for searching the same info for MAC, INT and INC routines.
Enjoy!
- Log in to post comments