有几种方法可以查询表的数据量:
SELECT COUNT(*) FROM table_name;
EXEC sp_spaceused 'table_name';
SELECT rows FROM sysindexes WHERE id = OBJECT_ID('table_name') AND indid < 2;