Insert thousand record at a time

alter procedure Insert100rows
  as begin
  declare @id int
select @id = 1
while @id >=1 and @id <= 1000
begin
    insert into HardwareDbTable(AssetName,Manufacturer,Model) values('jack' + convert(varchar(5), @id), 'dd','kk')
    select @id = @id + 1
end
end

Comments

Popular posts from this blog

Automatically send Birthday email using C#.Net

Drag and Drop multiple File upload using jQuery AJAX in ASP.Net using C# and VB.Net

Difference between each and map in jquery