Strange column names in execution plan

  • In the attached execution plan, at the sort operator(50% cost),when i hover over the operator in the plan i see something like "Expr 1088" ascending, why does it show like that?

  • That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • These are internal expressions produced when SQL Server executes the query.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • Keith Tate (11/6/2013)


    That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.

    But then why is it showing a column name for the other one?

  • curious_sqldba (11/7/2013)


    Keith Tate (11/6/2013)


    That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with this query (not sure if this is a real query or not), but the estimated rows and the actual rows are way off in some instances.

    But then why is it showing a column name for the other one?

    The scalar operator immediately before the sort is calculating the value of [Expr1088]. Included in the output of the scalar operator is the new expression [Expr1088] and the column [Column7]. The sort operator is then sorting on [Expr1088] and [Column7].

    In other words, [Expr1088] is a calculated value while [Column7] is a value from your table.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply