摘要:
--表修改时间SELECT name,crdate,refdate FROM SYSOBJECTS WHERE XTYPE='U' order by refdate descselect name,create_date,modify_date from sys.tables ORDER BY mo 阅读全文
摘要:
--SQL查询每个表的字段数量select b.[name], count(*) As AllCount,ISNULL(ISNULL(sum(case when isnullable=0 then 1 end),null),null) as NotNullCountfrom syscolumns a 阅读全文