Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by JayK
»
Analysing a T-SQL Query
29 posts, Page 1 of 3
1
2
3
»
»»
Analysing a T-SQL Query
Rate Topic
Display Mode
Topic Options
Author
Message
JayK
JayK
Posted Tuesday, May 04, 2010 10:39 PM
Old Hand
Group: General Forum Members
Last Login: Yesterday @ 4:47 AM
Points: 366,
Visits: 707
Comments posted to this topic are about the item
Analysing a T-SQL Query
Post #915796
Stewart "Arturius" Campbell
Stewart "Arturius" Campbell
Posted Wednesday, May 05, 2010 12:26 AM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 3,164,
Visits: 4,344
Good "back to basics" question.
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #915841
Kari Suresh
Kari Suresh
Posted Wednesday, May 05, 2010 12:39 AM
SSC Veteran
Group: General Forum Members
Last Login: Tuesday, January 01, 2013 11:12 PM
Points: 248,
Visits: 372
Good Question to analysis..
KSB
-----------------------------
Thousands of candles can be lit from a single candle, and the life of the candle will not be shortened. Knowledge and happiness never decreases by being shared.” - Buddha
Post #915846
SQLRNNR
SQLRNNR
Posted Wednesday, May 05, 2010 12:57 AM
SSCoach
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 18,858,
Visits: 12,443
This is a good question. Thanks. One other method one can use to demonstrate this is by evaluating the actual execution plan.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #915857
Daniel Bowlin
Daniel Bowlin
Posted Wednesday, May 05, 2010 8:20 AM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 8:36 AM
Points: 2,681,
Visits: 2,423
Really interesting question and explanation, thanks.
Post #916108
Trey Staker
Trey Staker
Posted Wednesday, May 05, 2010 8:53 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 5:42 PM
Points: 1,380,
Visits: 2,637
Great question, made me work for my points.
---------------------------------------------------------------------
Use Full Links:
KB Article from Microsoft on how to ask a question on a Forum
Post #916149
Oleg Netchaev
Oleg Netchaev
Posted Wednesday, May 05, 2010 9:04 AM
SSCommitted
Group: General Forum Members
Last Login: Friday, June 07, 2013 2:42 PM
Points: 1,662,
Visits: 1,710
CirquedeSQLeil (5/5/2010)
This is a good question. Thanks. One other method one can use to demonstrate this is by evaluating the actual execution plan.
Very good question, thank you. I did not try running the sample yet but I suspect that because the query is pretty simple, highlighting it in SSMS and hitting
CTRL
+
L
(to let SSMS show estimated plan) will do the trick as well because there should not be any differences between actual and estimated plans in this case.
Oleg
Post #916169
JayK
JayK
Posted Wednesday, May 05, 2010 9:17 AM
Old Hand
Group: General Forum Members
Last Login: Yesterday @ 4:47 AM
Points: 366,
Visits: 707
Just noticed a typo in the question.
The first line of text should read "non clustered index on EmailAddress" and not "non clustered index on LastName".....this script itself is OK....
Post #916186
SQLRNNR
SQLRNNR
Posted Wednesday, May 05, 2010 9:48 AM
SSCoach
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 18,858,
Visits: 12,443
Oleg Netchaev (5/5/2010)
CirquedeSQLeil (5/5/2010)
This is a good question. Thanks. One other method one can use to demonstrate this is by evaluating the actual execution plan.
Very good question, thank you. I did not try running the sample yet but I suspect that because the query is pretty simple, highlighting it in SSMS and hitting
CTRL
+
L
(to let SSMS show estimated plan) will do the trick as well because there should not be any differences between actual and estimated plans in this case.
Oleg
That is likely true - haven't tried. I am just accustomed to asking for the actual execution plan that it seemed the safer route for this too.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #916213
ColdCoffee
ColdCoffee
Posted Wednesday, May 05, 2010 10:10 AM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 4:37 PM
Points: 2,248,
Visits: 5,352
Wonderful question and equally wonderful explanation. The basics is hit in the nail! Thanks for this!
Post #916247
« Prev Topic
|
Next Topic »
29 posts, Page 1 of 3
1
2
3
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.