Declare @s varchar(50),@p varchar(1000)
Declare kk cursor for
select name from sysobjects where xtype='U'
open kk
fetch next from kk into @s
while @@fetch_status=0
begin
set @p='if not exists(select * from '+@s +' ) select ''' + @s+''''
exec(@p)
fetch next from kk into @s
end
close kk
deallocate kk