Question : Tracking Stored Procedure Execution

Sql Server 2000

Is there a way to tell when a SP was last executed ?  How about when a view was accessed ?

Thanks,
JK

Answer : Tracking Stored Procedure Execution

It is not possible to tell when the SP was last executed unless the sp inserts a log entry in a dedicated table for this purpose.
It is not possible to tell when a view was last accessed.

you could however run a trace to capture this, but
1) this puts some overhead on the system
2) is no guarantee, it might miss some events
3) cannot be used to find out afterwards, only during the tracing period
Random Solutions  
 
programming4us programming4us