@@ROWCOUNT
declare @Loop int, @Iterations intselect @Loop = 0 @Iterations = 100while @Loop <=@Iterations begin set @Loop = @Loop + 1 insertinto ... end That's a basic logic for inserting records in a...
View Article@@ROWCOUNT
Hi Naom,I was trying to insert values through while loop, please let me know what and where I'm doing wrong?Thanks
View Article@@ROWCOUNT
Hi Experts,How to execute below query, I'm getting error:-DECLARE @SIRID INTSET @SIRID = 0SETROWCOUNT 10CREATETABLE #TEMP ( ID INT )WHILE@@ROWCOUNT> 0BEGININSERTINTO #TEMP VALUES...
View Article
More Pages to Explore .....