Select identity(int,1,1) as iid,* into tmpTableName from TableNameSelect * from tmpTableName
drop table tmpTableName