Viewing post 1 (of 1 total)
create table #t (i int)EXEC sp_MSForEachTable 'insert into #T select count(*) from ?'select sum(i) from #t
create table #t (i int)
EXEC sp_MSForEachTable 'insert into #T select count(*) from ?'
select sum(i) from #t
May 4, 2016 at 1:14 pm
#1876715