当前位置:Gxlcms > 数据库问题 > SQL Server 查询所有表使用情况语句

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

时间:2021-07-01 10:21:17 帮助过:4人阅读

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

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

标签:

人气教程排行