Maximum Call Stack size Exceeded - Print Function

A A BIZACA 1 Reputation point

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

print @CNT

set @CNT = @CNT + 1

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

    @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.

    Navtej S

    0 comments No comments