Create Table #temp2
(
UserId Int IDENTITY(1,1),
StrTest Varchar(20)
)
Go
Declare @InsertValue Varchar(20)
Declare @IntCount Int
Set @IntCount=0
While(@IntCount<10)
Begin
Insert Into #temp2(StrTest) Values(@InsertValue)
Select @IntCount=@IntCount+1
End
Go
Select * from #temp2