• Hi @caoxp930,

    Two possibilities that I can think of:

    1) You might have ran the query on a SQL 2005 server, via SQL 2008 interface. The sys.dm_exec_procedure_stats doesn't exist on SQL 2005.

    2) You don't have VIEW SERVER STATE permission on the server you are running the query.