The query processor ran out of stack space during query optimization" error is encountered when creating a backup of a database with many filegroups.
Replication steps -
The error is visible in LiteSpeed logs.
The problematic query is also logged and it contains a large switch-case block (when x then y) with >2000 lines (one line for each existing filegroup).
Because the block is so large, the query optimizer runs out of resources when processing the query.
Product Defect - LS-2510
The issue has been fixed the latest hotfix release for LiteSpeed for SQL Server Hotfix 8.9.8.65.
You can download the installer from here.
© ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center