只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-12-10 14:56 奔跑的风.h 阅读(3) 评论(0) 推荐(0) 编辑
摘要: --表修改时间SELECT name,crdate,refdate FROM SYSOBJECTS WHERE XTYPE='U' order by refdate descselect name,create_date,modify_date from sys.tables ORDER BY mo 阅读全文
posted @ 2017-01-04 11:11 奔跑的风.h 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 查询存储过程时间 select * from sys.procedures ORDER BY modify_date DESC 阅读全文
posted @ 2017-01-04 11:10 奔跑的风.h 阅读(138) 评论(0) 推荐(0) 编辑
摘要: --SQL查询每个表的字段数量select b.[name], count(*) As AllCount,ISNULL(ISNULL(sum(case when isnullable=0 then 1 end),null),null) as NotNullCountfrom syscolumns a 阅读全文
posted @ 2017-01-04 11:10 奔跑的风.h 阅读(5192) 评论(0) 推荐(0) 编辑
摘要: SQL Server 表,记录 死锁解决办法 1. 先根据以下语句 查询 哪些表被 死锁,及 死锁的 spid SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName FROM sys.dm 阅读全文
posted @ 2017-01-04 11:07 奔跑的风.h 阅读(3830) 评论(0) 推荐(0) 编辑