I would like to set up a SQL Server 2008 Alert to notify me when any procedure executes for 1 second or longer (just an example).
Any ideas?
EDIT:
Ok
You can log slow running queries use SQL Profiler, but that won't help you with an alert, specifically. (I suppose you could log to a File or to a database table, and have something else "listen" and raise an alert).
In case you are not familiar with SQL Profiler here are the steps:
You should run SQL Profiler on something other than the server itself.
Start with the SQLProfilerTSQL_Duration template
Set the Filter : Duration : "Greater than" to 1000 (milliseonds)
In the filters you can restrict the Database, Login, or similar if necessary.
In the Events you can restrict to just SProcs (default also includes SQL statements)