是否可以确定 SQL Server 2000 中上次修改存储过程的时间? [英] Is it possible to determine when a stored procedure was last modified in SQL Server 2000?

查看:32
本文介绍了是否可以确定 SQL Server 2000 中上次修改存储过程的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以在 SQL Server 2005 中执行此操作,但我对 2000 感到茫然.

I know that you can do this in SQL Server 2005, but I'm at a loss for 2000.

推荐答案

据我所知.

为了解决这个问题,我在 Visual Studio 数据库项目中管理我的存储过程.每个存储过程都在它自己的文件中,并且在文件顶部有一个 drop 命令.当我通过 Visual Studio 更新存储时,由于 drop/create 语句,数据库的创建日期会在数据库中更新.我能够以这种方式使用 SQL Server 2000 中的创建日期作为最后修改日期.

To get around this, I manage my stored procedures in a Visual Studio database project. Every stored procedure is in its own file and has a drop command at the top of the file. When I update the stored through Visual Studio, the database's created date is updated in the database because of the drop/create statement. I am able to use the created date in SQL Server 2000 as the last modified date in this manner.

这篇关于是否可以确定 SQL Server 2000 中上次修改存储过程的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆