Там
declare @select varchar(max)
set @select = 'select '
select @select=@select+COLUMN_NAME+','
from information_schema.columns
where table_name = 'TABLE' and ordinal_position <= 2
set @select=LEFT(@select,LEN(@select)-1)+' from TABLE'
exec(@select)