如题:

Select IdEntity(int,1,1) as [id],* Into #t From TableName

Select * From #T

Drop Table #T