Establishing stored proc usage

  • Is there any way to tell when the last time a stored procedure was used, and/or how often it is being executed?

    Thanks,

    Jeff


    "Keep Your Stick On the Ice" ..Red Green

  • Set up a SQL Profiler trace tracking stored procedure statement completion. The trace can be run for a time period and stored to file or a table...more in BOL.

  • You could set up a log table and have the proc insert a record everytime it is run. Then you could see when and if necessary who ran the proc.

  • Thanks. I was hoping to avoid either choices 🙂


    "Keep Your Stick On the Ice" ..Red Green

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply