SELECT object_name (i.id) TableName,   
       rows as rows  
FROM sysindexes i   
INNER JOIN sysObjects o   
    ON (o.id = i.id AND o.xType = 'U ')   
WHERE indid < 2   
ORDER BY rows   desc

 

所有列名,列名所在表名

select name,OBJECT_NAME(id)from syscolumns 

 

 

所有存储过程

SELECT * FROM sysobjects where type='P' order by crdate desc

posted on 2017-10-31 08:45  lypzxy  阅读(646)  评论(0编辑  收藏  举报