SQLCMD : WHILE LOOP ile INSERT islemi WTIH ROLLBACK
Definition Description
use YUKSEL GO DECLARE @i int BEGIN TRANSACTION SET @i = 0 while (@i <= 1000) BEGIN print @i INSERT INTO hede2 VALUES ('cunay', @i) SET @i = @i + 1 IF @@ERROR <> 0 BEGIN raiserror('Hata var', 16,-1) ROLLBACK TRANSACTION END END COMMIT TRANSACTION