set nocount on
if object_id(N'tempdb.db.#temp') is not null
drop table #temp
create table #temp (name sysname,count numeric(18))

insert into #temp
select o.name,i.rows
from sysobjects o,sysindexes i
where o.id=i.id and o.Xtype='U' and i.indid<2

select count(count) 总表数,sum(count) 总记录数 from #temp
select * from #temp order by count desc
set nocount off

相关文章:

  • 2021-12-15
  • 2021-11-07
  • 2021-07-15
  • 2022-02-17
  • 2021-06-10
猜你喜欢
  • 2021-09-26
  • 2021-05-21
  • 2021-08-30
  • 2021-08-02
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案