1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
select schemaname, tblname, rowcnt from ( select schema_name(SYSOBJ.schema_id) as schemaname, SYSOBJ.name as tblname, SYSINDEXES.rows as rowcnt from sys.objects as SYSOBJ inner join sys.sysindexes as SYSINDEXES on SYSOBJ.object_id = SYSINDEXES.id and SYSINDEXES.indid < 2 where SYSOBJ.type = 'U' ) as t order by schemaname, tblname; |
コメント