I am attempting to validate some Dynamic SQL I have stored in a temp table that is and it could be any statement.
WHILE @counter <= (SELECT MAX(key) FROM @