1:
select top  40 a into #b from table