Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver Subject: Re: Error: Server stack limit has been reached Date: Fri, 13 Feb 2026 11:08:16 +0100 Organization: Erland Sommarskog Lines: 37 Message-ID: References: <20260212120515.8ee4ab4592232e32b3f4a69b@g{oogle}mail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Feb 2026 10:08:17 +0000 (UTC) Injection-Info: dont-email.me; posting-host="6053871205e343887fce19df2e4c26c4"; logging-data="2336567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mb1ETp9dEWuN0uLTNJsL5" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:buCJzCORX2aum9zO+sBQVOiRUxk= Xref: csiph.com comp.databases.ms-sqlserver:2279 Anton Shepelev (anton.txt@g{oogle}mail.com) writes: > Hello, all > > I am getting the following error from a third-party > application: > > Microsoft SQL Native Client 11.0: > Server stack limit has been reached. > Please look for potentially deep nesting in your query, > and try to simplify it. > > Yet I cannot seem to find a way to increase that limit. > This occurs on MSSQL 13.0.1601.5, whereas the only > mention of this error is in a bug fixed for a prior > version: > > > > What are my options, then? -- contact the product's tech > support? A start would be to apply Service Pack 3 for SQL 2016. It may help. In any case, you should not run with the RTM version of SQL 2016. You could also upgrade to a of SQL Server that is in mainstream support, that is SQL 2022 or SQL 2025. That presumes that the vendor support that version. Then you could open a case directly with Microsoft. But it may be better to open a case with the product vendor and let them have the discussions with Microsoft. Of course, this assumes that the vendor still support the version of the product that you are using. I guess that one way to increase the stack limit is to slap on more RAM. But that will not help if this is a case of infinite recursion or similar.