T SQL Dynamic Top N Запрос
SELECT TOP (@top) * FROM tablename;
Caleb McNevin
SELECT TOP (@top) * FROM tablename;