select identity(int,1,1) as seq,col1,col2,col3 into #t from table where col1='1'select * from #tdrop table #t