Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Strange column names in execution plan


Strange column names in execution plan

Author
Message
curious_sqldba
curious_sqldba
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1543 Visits: 3573
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?
Attachments
temp.sqlplan (7 views, 447.00 KB)
Keith Tate
Keith Tate
SSChasing Mays
SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)SSChasing Mays (614 reputation)

Group: General Forum Members
Points: 614 Visits: 979
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
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1170 Visits: 3432
These are internal expressions produced when SQL Server executes the query.



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
curious_sqldba
curious_sqldba
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1543 Visits: 3573
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?
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1170 Visits: 3432
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

@SeanPearceSQL

About Me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search