Select identity(int,1,1) id,* into #tem from table1
select * from #tem where id=10
drop table #tem