SHOWPLAN_TEXT ON vs SHOWPLAN_ALL ON

sakuraime 2,326 Reputation points
2020-09-03T04:39:51.25+00:00

what's the actual difference ? I can't see
22393-text-all.jpg

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,962 questions
{count} votes

Accepted answer
  1. AmeliaGu-MSFT 13,981 Reputation points Microsoft Vendor
    2020-09-03T08:33:26.173+00:00

    Hi sakuraime,
    The showplan_all contains the columns output by showplan_text, as well as other columns such as estimated rows, IO and CPU costs, Node Id, etc.
    Set showplan_text on:
    22443-showplan-text.jpg

    Set showplan_all on:
    22240-showplan-all.jpg
    Please refer to SET SHOWPLAN_TEXT and SET SHOWPLAN_ALL which might help.
    Best Regards,
    Amelia

    =======================================

    Please remember to Accept Answer and upvote the responses that resolved your issue.


2 additional answers

Sort by: Most helpful
  1. SQLZealots 276 Reputation points
    2020-09-03T05:09:02.453+00:00

    Refer the below link for more details.
    http://www.sqlbythebook.com/2016/12/28/showplan-options/


    Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
    Blog
    LinkedIn

    0 comments No comments

  2. tibor_karaszi@hotmail.com 4,311 Reputation points
    2020-09-03T06:41:19.08+00:00

    SHOWPLAN_TEXT only gives you the "plan shape" and SHOWPLAN_ALL also gives you estimates (number of rows, for instance). But why mess about with these when we have XML? These haven't been improved on for two decades now!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.