SQL Server 查询所有表使用情况语句

时间:2015-08-18 12:26:52   收藏:0   阅读:297

SQL Server 查询所有表使用情况语句

select schema_name(t.schema_id) as [Schema], t.name as TableName,i.rows as [RowCount]

from sys.tables as t, sysindexes as i

where t.object_id = i.id and i.indid <=1

原文:http://my.oschina.net/tonglei0429/blog/493806

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!