I want to know how often a set of stored procedures run, and the last time they were used.
I am thinking of adding calls to the top of every stored procedure in the database to insert/update a table, with the following schema:
SprocName ExecCount LastExec
----------------------------------
GetCompany 434 2009-03-02
ExportDist 2 2008-01-05
Obviously, adding code to every sproc isn't exactly productive.
Is there a built in feature of SQL Server 2005 that can help?
Or is there a better way?