begin tran declare @zostalo int set @zostalo=0 while(@zostalo<10) insert into dane select rand(20)-10 set @zostalo = @zostalo +1 commit tran go