use [数据库名]
select
last_execution_time
'最近一次执行时间'
from
sys.dm_exec_procedure_stats
where
type=
'P'
and
database_id=db_id(
'[数据库名]'
)
and
object_id=object_id(
'[存储过程名]'
)
use [数据库名]
select
last_execution_time
'最近一次执行时间'
from
sys.dm_exec_procedure_stats
where
type=
'P'
and
database_id=db_id(
'[数据库名]'
)
and
object_id=object_id(
'[存储过程名]'
)
转载于:https://www.cnblogs.com/lvdongjie/p/7337512.html