We use a large query in one of our stored procedures. Recently we had to add a few more fields to the query and now I am not able to execute the query. I am receiving this message in QA:
Server: Msg 8621, Level 17, State 1, Line 145
Internal Query Processor Error: The query processor ran out of stack space during query optimization.
Is there a way to modify the SQL Server's stack space, instead of modifying the query or using a temp table?
Thanks.
Andrew J. Hahn