i've done a T-SQL script to get the same result, but returns a layout that's easier to analyze the results
set nocount on
go
create table #Tables_X_Record_Count
(table_name varchar(max),
record_count integer)
go
declare
@cursor CURSOR,
@table_name varchar(max),
@record_count integer
set @cursor = cursor for
select name from
(
select * from sysobjects where xtype = 'U'
) user_tables order by name
open @cursor
fetch next from @cursor into @table_name
while (@@fetch_status<>-1)
begin
INSERT INTO #Tables_X_Record_Count (table_name) VALUES (@table_name)
exec (' update #Tables_X_Record_Count set record_count = (select COUNT(*) as contagem FROM '+@table_name+') where table_name = '''+@table_name+'''')
fetch next from @cursor into @table_name
end
close @cursor
deallocate @cursor
select * from #Tables_X_Record_Count
drop table #Tables_X_Record_Count
set nocount off