Synapse showplan_xml error

Narendra 71 Reputation points
2023-02-03T23:09:56.2266667+00:00

If I use synapse via SSMS, i get the error "The statement Batch is currently not supported with set showplan_xml on" if I declare variables.

This is not happening for hard coded values. Is there any reason for this behavior?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,359 questions
{count} votes

Accepted answer
  1. BhargavaGunnam-MSFT 25,971 Reputation points Microsoft Employee
    2023-02-08T15:47:45.0266667+00:00

    Hello @Narendra,

    If you are using SSMS, could you please let me know your SSMS version?

    I can able to view the estimated execution plan and XML plan using SSMS v19.0

    To view the XML plan use the command SET SHOWPLAN_XML ON

    To view the estimated execution plan, you can enable it from SSMS(please see the below screenshot)

    257960-image.png

    258013-image.png

    I hope this helps. please let me know if you have any further questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful