I ran a query to get last_elapsed_time from sys.dm_exec_procedure_stats, given the object_id of a particular sproc.
The table had 2 rows with the same object_id for the sproc. I ran the sproc again and the row for the last sproc run was replaced with a row representing the latest sproc run. However, the row representing the run from earlier this morning still exists as a second row in this table.
Do you expect that this table should have only 1 row per object_id? Is there a known quirk where sometimes additional rows exist in this table,
and the dev just needs to remember to take the one with the latest datetimestamp? Or is there some reason that by design SS maintains more than a single row for an object_id in this table?