SQL Server 计算表记录数和占用空间 USE 数据库名字 GO SELECT obj.name AS TableName, prt.rows AS TotalRows, SUM(alloc.used_pages) * 8 AS [SpaceUsed(KB)] FROM sys.objects A... 2012-03-22