EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB16890: 'Rerun the query without intra-query parallelism by using the query hint option (maxdop 1)' message appears when using Microsoft SQL Server Parallelism


Community Admin

• Strategy


SYMPTOM:
The following error message appears when running some specific reports.
An example in English
QueryEngine encountered error: Execute Query failed. Error type: ODBC error. ODBC operation attempted: SQLExecDirect. Intra-query parallelism caused your server command (process ID #51) to deadlock. Rerun the query without intra-query parallelism by using the query hint option (maxdop 1).
Error in Process method of Component: QueryEngineServer, Project 4, Job 6258, Error Code= -2147212544.
An example in Portuguese
QueryEngine encontrou um erro: Execute Query failed. Error type: ODBC error. ODBC operation attempted: SQLExecDirect. Intra-query parallelism caused your server command (process ID #67) to deadlock. Rerun the query without intra-query parallelism by using the query hint option (maxdop 1).
Erro no método de processamento do componente: QueryEngineServer, projeto DM FINANCEIRO, trabalho 25022, código de erro= -2147212544.
CAUSE:
Strategy is working as designed. According to Microsoft documentation, it occurs because the SQL Server detected a deadlock that involves the threads that are used by the same parallel query.
 
ACTION:
In this specific scenario, the chosen option was suppressing the generation of a parallel plan. This option was chosen because only the SQL Statement from the affected report is altered so that it is necessary to repeat the steps below for all affected reports.

  • Edit each affected report.
  • Go to the Data menu and choose the option VLDB Properties, as shown below:
ka04W000000OfCHQA0_0EM440000002JIR.jpeg
  • Open the folder Select/Insert and click on option Select Post String.
  • Insert the option OPTION (MAXDOP 1), as shown below:
ka04W000000OfCHQA0_0EM440000002JIQ.jpeg

 
There should be a blank line before the clause OPTION (MAXDOP1), otherwise the SQL STATEMENT is generated incorrectly as shown and it will not work as supposed to, as shown below:
 

ka04W000000OfCHQA0_0EM440000002JIS.jpeg

 
Refer to the following Strategy Knowledge Base technical note for more information:
 
KB14316 (KB2000-000-0111): ‘Intra-query parallelism caused your server command (process ID #51) to deadlock’ error occurs while executing a report when using multi-processor SQL Server as a warehouse
 


Comment

0 comments

Details

Knowledge Article

Published:

May 11, 2017

Last Updated:

May 11, 2017