SQL Server 2005/2008遍历所有表统计行数的SQL语句
在SQL Server 2005/2008中的当前数据库中遍历所有表显示所有表的行数
DECLARE CountTableRecords CURSOR READ_ONLY FOR
SELECT sst.name,
Schema_name(sst.schema_id)
FROM sys.tables sst ...