Hi @Biltz ,
Error: 8624, Severity: 16, State: 21.
This error may appear in newer versions, so you can try lowering the compatibility level and try again. Compatibility level you can try one by one down.
USE MASTER
GO
ALTER DATABASE [YourDatabase] SET COMPATIBILITY_LEVEL = xxx
GO
Here is an article you can refer to: https://www.mssqltips.com/sqlservertip/5279/sql-server-error-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan/ , which has other possible solutions.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.