Maximum Call Stack size Exceeded - Print Function

A A BIZACA 1 Reputation point
2021-03-15T12:07:14.89+00:00

Hi, I have a problem with Azure Data Studio."Maximum Call Stack size Exceeded"
This happens when i print each record to output window. There seems to be a limit to how many times i can print the result to output window...

----------------

Query Sample

----------------

declare @CNT int = 1

while @CNT <= 130000
begin

print @CNT

set @CNT = @CNT + 1
end

Run this query and see for yourself - if you change the value 130 000 to example 100 000 it works fine. Otherwise you get the call stack error.

So my question is: Can you increase that limit somehow in Azure Data Studio?

That same query runs perfectly in SQL Management Studio

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Navtej Singh Saini 4,221 Reputation points Microsoft Employee
    2021-03-29T23:57:49.657+00:00

    @A A BIZACA - The confirmed that it is the bug and the issue fix has been applied and latest build can be downloaded from here.

    Please let us know if you need further help.

    Regards
    Navtej S

    0 comments No comments