欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

SQL Server 得到数据库中所有表的名称及数据条数

程序员文章站 2022-03-28 10:13:12
...

b.name as tablename ,c.row_count as datacount from sys.indexes a ,sys.objects b ,sys.dm_db_partition_stats c b.b.c.a.index_id = c.index_id b.is_ms_shipped b.name as tablename ,a.rowcnt as datacount from sysindexes a ,sysobjects b where a.i

b.name as tablename , c.row_count as datacount from sys.indexes a , sys.objects b , sys.dm_db_partition_stats c b.b.c.a.index_id = c.index_id b.is_ms_shipped b.name as tablename , a.rowcnt as datacount from sysindexes a , sysobjects b where a.id = b.id (b.id, ) = 0 ,香港服务器租用,美国服务器,香港虚拟主机