May 1, 2012 at 5:46 am
...WITHOUT creating a sproc? Is there a Select I can run to get fragmentation levels for all indexes on a particular table/db/server?
May 1, 2012 at 5:51 am
Just did a quick google search:
http://www.mssqltips.com/sqlservertip/1708/index-fragmentation-report-in-sql-server-2005-and-2008/
:exclamation: "Be brave. Take risks. Nothing can substitute experience." :exclamation:
May 1, 2012 at 6:54 am
jblovesthegym (5/1/2012)
...WITHOUT creating a sproc? Is there a Select I can run to get fragmentation levels for all indexes on a particular table/db/server?
SQL Server 2005 Diagnostic Information Queries
Glenn Berry
January 2011
http://sqlserverperformance.wordpress.com/
Twitter: GlennAlanBerry
Frag stats are near the bottom. Beware - it can take a while to run especially if your indexes are in a mess. Read about the limitations of sys.dm_db_index_physical_stats on Paul Randall's blog before playing with it and save yourself some time if you want fill factor, reads & writes output with frag stats.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 1, 2012 at 7:11 am
This is for SS 2000, gentlemen!!
May 1, 2012 at 7:15 am
jblovesthegym (5/1/2012)
This is for SS 2000, gentlemen!!
Oops - humble apologies, JB. Glen's written the same suite for different versions, have you looked for 2k?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 1:43 am
Not found, no.
May 2, 2012 at 1:46 am
jblovesthegym (5/2/2012)
Not found, no.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 2:24 am
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.
??
May 2, 2012 at 2:31 am
jblovesthegym (5/2/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.??
What's up?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 1:37 pm
@jblovesthegym, the here you go was a hyperlink you need to click on to follow
May 3, 2012 at 3:48 am
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.??
What's up?
Fellas,
1) The link was not present on my screen, possibly the result of being stripped out of the page by corporate AV software - I only saw it when I attempted to quote Chris' post;
2) The link does NOT explain how to determine fragmentation, which is the entire point of this thread;
3) I posted the issue to another forum, and the first post gave me the resolution ; DBCC ShowContig.
Thanks for your efforts.
May 3, 2012 at 4:57 am
jblovesthegym (5/3/2012)
2) The link does NOT explain how to determine fragmentation, which is the entire point of this thread;
Really? Quoting from that article:
Using DBCC SHOWCONTIG to Identify Fragmented Indexes
When deciding to defragment, you must first identify the fragmented indexes. DBCC SHOWCONTIG allows you to measure fragmentation and page density levels on indexes.
Followed by a page or so on DBCC Showcontig, including how to interpret the output.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 3, 2012 at 4:58 am
jblovesthegym (5/3/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.??
What's up?
Fellas,
1) The link was not present on my screen, possibly the result of being stripped out of the page by corporate AV software - I only saw it when I attempted to quote Chris' post;
2) The link does NOT explain how to determine fragmentation, which is the entire point of this thread;
3) I posted the issue to another forum, and the first post gave me the resolution ; DBCC ShowContig.
Thanks for your efforts.
Three quarters down the first page of the link:
"Before you defragment indexes, ensure that system resources issues, such as physical disk fragmentation or inappropriate schemas, are not adversely affecting workload performance.
DBCC SHOWCONTIG allows you to determine the amount of index fragmentation. When you run this statement, pay particular attention to the values for Logical Fragmentation and Page Density."
The context of the statement is significant.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 3, 2012 at 7:40 am
I sit corrected on #2.
Viewing 14 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic. Login to reply