March 31 - April 2, 2009
March 31 - April 2, 2009
http://blogs.msdn.com/manisblog/archive/2008/11/16/sql-server-2008-resource-
governor-part-ii.aspx
Icon info:
http://msdn.microsoft.com/en-
us/library/ms175913.aspx
Copyright Sammamish Software Services 2008 (All rights reserved)
SQL Server system stored
procedures
DTA provides
recommendations to
add, remove, or modify
physical design
structures:
physical clustered
indexes,
nonclustered indexes,
indexed views, and
partitioning.
Copyright Sammamish Software Services 2008 (All rights reserved)
Horizontal data partitioning
Partitions enable organizations to manage
large, growing tables more effectively by
transparently breaking them into
manageable blocks of data.
SQL Server 2008 builds on the advances on
partitioning in SQL Server 2005 by improving
performance on large, partitioned tables.
performance in large
tables Orders
http://sqlcat.com/presentations/archive/2008/04/18/troubleshooting-sql-server-
2005-2008-performance-and-scalability-flowchart.aspx
Copyright Sammamish Software Services 2008 (All rights reserved)
Indexing Basics
Data Pages
Heap data pages
Page 4 Page 5 Page 6 Page 7 Page 8 Page 9
Con ... 470401 Rudd ... 470501 Alba
Akhtar ...470601 Smith ... 470701 Martin
Martin ...470801 Grey ... 470901
Ganio
Funk
Fung ... 470402 White ... 470502 Fung
Funk ...470602 Ota ... 470702 Phua
Phua ...470802 Jones ... 470902
White ... 470403 Barr ... 470503 Smith ...470603 Jones ... 470703 Jones ...470803 Hall ... 470904
... ... ... ... ... ... Martin ...470604
...470604 ... ... ... Smith ...470804 ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
Clustered Alba
Akhtar
Index ...
Page 141 Martin Page 145
Akhtar
Alba Page 140 - Root Martin
Ganio
Grey Smith
... ...
2334 Alba
Akhtar ... 7678 Grey
Ganio ... 1234 Martin ... 1434 Smith ...
5678 Barr
Barr ... 8078 Hall ... 7778 Martin ... 7206 5778 Smith ... 8721
2534 Con ... 2434 Jones ... 5878 Ota
Ortega... 7978 Smith ... 8772
1334 Fung
Funk ... 5978 Jones ... 5788 7878 Phua ... 2234 White ...
Funk ... 4705
1534 Fung 2634 Jones ... 6002 6078 Rudd ... 1634 White ... 9355
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
Page 100 Page 110 Page 120 Page 130
Copyright Sammamish Software Services 2008 (All rights reserved)
What columns should I
index?
Columns to Index
Primary (gets an index by default) and foreign keys
(do not get an index by default)
Those frequently searched in ranges
Those frequently accessed in sorted order
Columns Not to Index
Those rarely referenced in queries (in the filter i.e.,
where clause)
Those that contain few unique values
e.g. the State column when most customers are local
Those defined with bit, text, or image data types
Copyright Sammamish Software Services 2008 (All rights reserved)
Using the FILLFACTOR Option
Specifies How Much to Fill the Page
Impacts Leaf-Level Pages only (not intermediary)
Data Pages Full
Con ... 470401 Alba ... 470601 Martin ... 470801
Fung ... 470402 Fung ... 470602 Phua ... 470802
White ... 470403 Smith ... 470603 Jones ... 470803
Rudd ... 470501 Martin ... 470604 Smith ... 470804
White ...470502 Smith ... 470701 Grey ... 470901
Barr ...470503 Ortega ...470702 Jones ...470902
Data Pages
50% Fillfactor
Con ... 470401 Rudd ... 470501 Alba ... 470601 Martin ... 470604 Martin ... 470801 Smith ... 470804
Fung ... 470402 White ... 470502 Fung ... 470402 Smith ... 470701 Phua ... 470802 Grey ... 470901
White ... 470403 Barr ... 470503 Smith ... 470603 Ortega ... 470702 Jones ... 470803 White ... 470902
Person.Contact
ContactI NameSty
D le Title Firstname M Lastname
1 0 Mr. Gustavo NULL Achong
2 0 Ms. Catherine R. Abel
3 0 Ms. Kim NULL Abercrombie
4 0 Sr. Column 1
Humberto NULL Acevedo Column 2
Composite
5 0 Sra. Pilar NULL Ackerman
Key
Set up strategies
Resources
Good luck!