Lv.的博客

sqlserver 获取存储过程执行时间

use [数据库名]
 
select last_execution_time '最近一次执行时间'
 from sys.dm_exec_procedure_stats
 where type='P' 
 and database_id=db_id('[数据库名]')
 and object_id=object_id('[存储过程名]')
posted @ 2017-08-10 09:38  Avatarx  阅读(2319)  评论(0编辑  收藏  举报