• This would also eliminate the select count(*)

    while (EXISTS(select 'True' From @dblist))