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
»
SQL Server 2008
»
SQL Server 2008 - General
»
SQL Server Statistics
SQL Server Statistics
Rate Topic
Display Mode
Topic Options
Author
Message
scziege
scziege
Posted Tuesday, November 27, 2012 11:27 PM
SSC Rookie
Group: General Forum Members
Last Login: Yesterday @ 1:41 AM
Points: 43,
Visits: 208
Hi to all,
is it possible to force SQL Server 2008 not to use Range_ROWS in its statistic ?
I have the follwing statitic and want avoid the Range_ROWS, all should be zero:
RANGE_HI_KEY RANGE_ROWS EQ_ROWS DISTINCT_RANGE_ROWS
2012052802 0 1 0
2012053003 1 1 1
2012053102 0 1 0
2012060102 0 1 0
2012060402 0 1 0
2012060602 1 1 1
Thanks in advance
Post #1389518
GilaMonster
GilaMonster
Posted Wednesday, November 28, 2012 12:46 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 11:45 AM
Points: 37,744,
Visits: 30,023
Why?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1389547
scziege
scziege
Posted Wednesday, November 28, 2012 1:32 AM
SSC Rookie
Group: General Forum Members
Last Login: Yesterday @ 1:41 AM
Points: 43,
Visits: 208
Because we have a query which used Nested Loops if we have RANGE_ROWS and then the query performes worse.
But we can't change the query at the moment, that is the problem
Post #1389562
GilaMonster
GilaMonster
Posted Wednesday, November 28, 2012 1:43 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 11:45 AM
Points: 37,744,
Visits: 30,023
Please post table definitions, index definitions and execution plan.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1389570
Grant Fritchey
Grant Fritchey
Posted Wednesday, November 28, 2012 7:50 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 3:41 AM
Points: 13,383,
Visits: 25,189
You can't directly control what gets created in statistics, but you can create specific types of statistics. Try creating a filtered statistic. I'm not sure what you'd filter by in this case, but that can change what is represented within the statistics.
But, as Gail says, for a more specific recommendation, you need to post a lot more information.
----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans
Product Evangelist for
Red Gate Software
Post #1389792
« Prev Topic
|
Next Topic »
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.