如何在SQL中查找“最后一天运行的存储过程" [英] How to find Last Day run Stored Procedure in SQL
本文介绍了如何在SQL中查找“最后一天运行的存储过程"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们开始在我们的应用程序中获得很多存储过程.其中许多用于自定义报告,其中许多不再使用.有谁知道我们可以在SQL Server 2005的系统视图上运行的查询,该查询可以告诉我们存储过程的最后执行日期?
We starting to get a lot of stored procedures in our application. Many of them are for custom reports many of which are no longer used. Does anyone know of a query we could run on the system views in SQL Server 2005 that would tell us the last date a stored procedure was executed?
推荐答案
在那里"没有内置任何内容,但是此CodeProject文章可能会有所帮助:
用于Microsoft SQL的审核跟踪生成器 [
There''s nothing built in, but this CodeProject article may help:
Audit Trail Generator for Microsoft SQL[^]
这篇关于如何在SQL中查找“最后一天运行的存储过程"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文