I have a while construct that looks something like this:
While @counter<= @maxcounter
do some stuff
This is adding one more record than the actual value of @maxcounter. At the end of processing I add 1 to the @counter variable. So for example if @maxcounteris = 7 the stored procedure returns as if @maxcounter was = 8...
Any thoughts
TJ
While @counter<= @maxcounter
do some stuff
This is adding one more record than the actual value of @maxcounter. At the end of processing I add 1 to the @counter variable. So for example if @maxcounteris = 7 the stored procedure returns as if @maxcounter was = 8...
Any thoughts
TJ