Error 8624
Contents |
Processor Error: The query processor could not produce a query plan. ★★★★★★★★★★★★★★★ BalmukundJuly 15, 20143 0 0 0 Sometimes we see the below error in SQL Server 2008 R2
Sqlstate 42000 Error 8624
SP1 when executing a query in SQL Server Management Studio: ----------------------------------------- Error: 8624, Severity: error 8624 severity 16 state 1 16, State: 116. Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer internal query processor error: the query processor could not produce a query plan Support Services. ----------------------------------------- So, how to handle this situation? I am using SQL Server 2008 R2 SP1 specifically, because some bugs related to the above problem has been fixed in SQL Server 2005 SP2:
Internal Query Processor Error Sql 2008 R2
http://support.microsoft.com/kb/931329 As I am using SQL Server 2008 R2 SP1, so I should not get this error message, but still I am getting this. So, maybe I am doing something wrong which is not the above bug but something different. Let’s check. I have used the below query (well, the logic of the query is not important here) in my SSMS: ------------------------------------------ select * from (select c2
Internal Query Processor Error The Query Processor Encountered An Unexpected Error During Execution
"c7", c4 "c8", COUNT(1) "c9" from Table1 group by c2, c4) Table2 where (c7) not in (select c7 from (select c2 "c7", c4 "c8", COUNT(1) "c9" from Table1 group by c2, c4) Table2, (select c7 "c11", COUNT(c7) "c12" from (select c2 "c7", c4 "c8", COUNT(1) "c9" from Table1 group by c2, c4) Table2 group by c7 having count(c7)=1) Table3 where Table2.c7=Table3.c11 and Table2.c9>1) ------------------------------------------ The query failed with: Error: 8624, Severity: 16, State: 116 Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services The error message means that the optimizer couldn’t generate the query plan at all. But why? What’s wrong with the optimizer? The same optimizer is producing plans for the other queries. First of all, please check whether the stats are updated with Full Scan as the optimizer replies on the stats for generating the best execution plan. We can update them by using the below command for all the statistics created in the associated tables: ------------------------------------------ UPDATE STATISTICS SchemaName.TableName(StatsName) WITH FULLSCAN; ------------------------------------------ After updating the stats try to run the query. If it still gives the same error, then the cause of the above error can be: 1.
MichelDecember 11, 20120 0 0 0 Problem description: We got some mini memory dump. In side our query processor could not produce a query plan because of the hints defined in this query SQL error log, we can see the error message below Stack Signature for the dump is 0x00000000950A8E26 External dump process return code 0x20000001. External dump process returned no errors.Error: 8624, Severity: 16, State: 116. Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support https://blogs.msdn.microsoft.com/sqlserverfaq/2014/07/15/troubleshooting-error-8624-severity-16-state-21-internal-query-processor-error-the-query-processor-could-not-produce-a-query-plan/ Services. ex_raise2: Exception raised, major=86, minor=24, state=116, severity=16, attempting to create symptom dump ex_raise2: Exception raised, major=86, minor=24, state=116, severity=16 Interesting link:We found out a similar issue. However, I am in SQL Server 2005 SP4 (9.00.5000.00 (X64)), and the issue below was fixed in SQL 2005 SP2.E.G. FIX: Error message when you https://blogs.technet.microsoft.com/mdegre/2012/12/11/8624-internal-query-processor-error-the-query-processor-could-not-produce-a-query-plan/ run a query in Microsoft SQL Server 2005: "Msg 8624, Level 16, State 116 Internal Query Processor Error: The query processor could not produce a query plan" Cause: We got the query from the dump, but you could also get the query with a profiler trace with the events TSQL SQL:BatchCompleted or Stored procedure RPC:Completed with Error and Waring Exception. We the query we are able to reproduce the issue each time. We saw that the dump was generated by statistics stream corrupted (spotted that in the generation script of the objects) Resolution: We run an update statitics with fullscan to solve the issue on all objects called by the query.We run again the query and the issue didn't occur. Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |
Tags Dump SQL Server Comments (0) Cancel reply Name * Email * Website Follow UsPopular TagsSQL Server SSAS Cluster Installation Security SQL Server High AvailabilityTechnology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java http://datawarehouse.ittoolbox.com/groups/technical-functional/informatica-l/error-8624-internal-query-processor-error-the-query-processor-could-not-produce-a-query-plan-5102090 Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management http://www.sqlservercentral.com/Forums/Topic1431107-391-1.aspx SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries MacProTX Inside-ERP VoIP_News Inside-CRM maxwellarnold I_am_the_dragon PCMag query processor Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker JoeTorre bracke Locutus Ramnath.Awate DukeGanote Dennis Stevenson Craig Borysowich Richard mircea_luca Nikki Klein AbhaiTripathi knowscognosdoi Clinton Jones blrvenkat bluesguyAZ59 iudithm COMPANIES RSA Conference UC4 Apperian Sophos View All Topics View All Members View All Companies Toolbox for IT Topics Data Warehouse Groups Ask a New internal query processor Question Informatica The Informatica group is your premier resource for objective technical discussion and peer-to-peer support on Informatica data integration software. Home | Invite Peers | More Data Warehouse Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. Error: 8624 Internal Query Processor Error: the Query Processor Could Not Produce a Query Plan Sudipa Batabyal asked Feb 14, 2013 | Replies (5) Hi,
Recent PostsRecent Posts Popular TopicsPopular Topics Home Search Members Calendar Who's On Home » SQL Server 2008 » SQL Server 2008 - General » Internal Query Processor Error 13 posts,Page 1 of 212»» Internal Query Processor Error Rate Topic Display Mode Topic Options Author Message AdmingodAdmingod Posted Thursday, March 14, 2013 10:37 AM SSC-Enthusiastic Group: General Forum Members Last Login: Wednesday, September 28, 2016 4:11 PM Points: 112, Visits: 1,012 Any idea on this...Msg 8624, Level 16, State 21, Line 1Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.we are on SQL Server 2008 R2.Thanks Post #1431107 Lynn PettisLynn Pettis Posted Thursday, March 14, 2013 10:52 AM SSC-Insane Group: General Forum Members Last Login: 2 days ago @ 8:11 PM Points: 23,393, Visits: 37,418 Admingod (3/14/2013)Any idea on this...Msg 8624, Level 16, State 21, Line 1Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.we are on SQL Server 2008 R2.ThanksSorry, but I can't see what you see. Lynn PettisFor better assistance in answering your questions, click hereFor tips to get better help with Performance Problems, click hereFor Running Totals and its variations, click here or when working with partitioned tablesFor more about Tally Tables, click hereFor more about Cross Tabs and Pivots, click here and hereManaging Transaction LogsSQL Musings from the Desert Fountain Valley SQL (My Mirror Blog) Post #1431121 Orlando ColamatteoOrlando Colamatteo Posted Thursday, March 14, 2013 10:59 AM SSCertifiable Group: General Forum Members Last Login: Thursday, October 6, 2016 8:43 PM Points: 7,932, Visits: 14,339 What build are you on?SELECT SERVERPROPERTY('Edition') AS Edition, SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevelCan you please post the query as well?