At the execution of a small t-sql loop (while - begin - end) in native MSSQL connection and JDBC getting a strange results. In MSSQL SMS all works as expected where via JDBC getting just the first loop.
declare @i int = 1
while @i <= 10
begin
select @i
set @i=(@i+1)
end
Result in SMS is: 1 2 3 ... 10
Where in via jdbc just 1
Highly appreciate any help !
Thank you