当前位置:首页 > 技术心得 > 正文内容

sql查询存储过程的修改记录和时间

xjtudll2年前 (2024-10-31)技术心得3260

–查询建立时间

–表

select * from sysobjects where id=object_id(N’表名’) and xtype=‘U’

–表的结构

select * from syscolumns where id=object_id(N’表名’)

–存储过程

select * from sysobjects where id=object_id(N’dqtx’) and xtype=‘P’

–查询最后修改时间

–存储过程

select name,modify_date from sys.all_objects where name = ‘存储过程’ and type=‘P’ order by modify_date desc

–触发器

select name,modify_date from sys.all_objects where name = ‘存储过程’ and type=‘TR’ order by modify_date desc

–表

select * from sys.all_objects where name = ‘存储过程’ and type=‘u’ order by modify_date desc

扫描二维码推送至手机访问。

版权声明:本文由鸟的天空发布,如需转载请注明出处。

本文链接:http://www.xjtudll.cn/Exp/691/

标签: SQL
分享给朋友:

“sql查询存储过程的修改记录和时间” 的相关文章

万年历星期算法分析

 1、 蔡勒公式  w=(y+[y/4]+[c/4]-2*c+[26*(m+1)/10]+d-1)%7             &...

如何统计SQL语句查询出来的条数

可以通过count函数来实现。 sqlOne:select * from tablename1 where id>5;此语句查询出来多条记录,之后看做一个新的表。 sqlTwo:select conut(*) from (select * from tablename1 where id>...

Android Studio: This version of the rendering library is more recent than your version of Android Studio

Android Studio: This version of the rendering library is more recent than your version of Android Studio

Android Studio预览xml布局时,提示: This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio 如图所示...

Keil新增STC 51型号

Keil新增STC 51型号

STC官网提供的方法: (详见:http://www.mcu-memory.com/) 备份KEIL安装目录下的UV2.CDB或者UV3.CDB文件(在文件夹UV2或者UV3里面),然后用STC提供的同名的CDB文件覆盖。 这种方法操作起来很简单,但缺点是在器件选型时,只能选择STC单片机,其他的都...

金蝶K3 WISE 快速登录

修改快捷方式 "C:\Program Files (x86)\Kingdee\K3ERP\k3main.exe" -LoginUser|账套号|账套密码|用户账号|用户密码...

android Service : onStartCommand intent为null

参考资料: http://hold-on.iteye.com/blog/2024926 问题: service中加入onStartCommand之后,不定期crash。 分析: 经查看onStartCommand中代码,只有intent为空才可能报NullPointException 。 inten...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。