日期:2014-05-18 浏览次数:20568 次
create table #t(cnt int) insert into #t exec sp_msforeachtable 'select count (*) as cnt from ?' select sum(cnt) from #t
------解决方案--------------------
更简单的
select sum(rowcnt) from sys.sysindexes where indid=0 and id<>8
------解决方案--------------------