I need to find any stored procedures that have not been used over a certain time period.I have set up an extended events session to gather sp_statement_starting and _completed.The trace returns the object_id's of many stored procedures. I then query the sys.procedures and plug in the object_id to return the stored proc name.Do I have to repeat this process for every different object_id or is there a way I can query the trace results, using the object_id as my search criteria as one query ?Or if anybody has done this process of finding unused sp's and can offer an alternative method then please let me know !
↧