{"id":73,"date":"2010-02-26T16:50:43","date_gmt":"2010-02-26T21:50:43","guid":{"rendered":"http:\/\/sqlity.net\/en\/?p=73"},"modified":"2014-11-13T14:04:29","modified_gmt":"2014-11-13T19:04:29","slug":"index-views-indexphysical","status":"publish","type":"post","link":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/","title":{"rendered":"Index Views: IndexPhysical"},"content":{"rendered":"<p style=\"margin-bottom: 0in; font-style: normal; font-weight: normal; text-decoration: none\"><span style=\"color:#000000;\"><span style=\"font-size:10pt;\">With this post I am going to start a series about queries that I find helpful while researching indexes and index issues. In fact, because I use them often, I encapsulated them in views.<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in; font-style: normal; font-weight: normal; text-decoration: none\"><span style=\"color:#000000;\"><span style=\"font-size:10pt;\">The first one is <span style=\"font-family:Courier New, monospace;\">SATools<\/span><span style=\"color:#808080;\"><span style=\"font-family:Courier New, monospace;\">.<\/span><\/span><span style=\"font-family:Courier New, monospace;\">IndexPhysical<\/span><span style=\"font-family:Times New Roman, serif;\"><span style=\"font-size: 8pt; font-size:8pt;\">:<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><\/p>\n<table border=\"0\" width=\"95%\" cellpadding=\"5\" cellspacing=\"0\">\n<col width=\"256*\" \/>\n<tr>\n<td bgcolor=\"#e6e6e6\" width=\"100%\">\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CREATE<\/span> <span style=\"color:#0000ff;\">VIEW<\/span> <span style=\"color:#000000;\">SATools<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexPhysical<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">AS<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">SELECT<\/span> <span style=\"color:#ff00ff;\">OBJECT_NAME<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">i<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#ff00ff;\">object_id<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#000000;\">Tbl<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">i<span style=\"color:#808080;\">.<\/span>name Idx<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">i<span style=\"color:#808080;\">.<\/span>type_desc <span style=\"color:#0000ff;\">TYPE<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>partition_number <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#0000ff;\">Partition<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>index_level <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#0000ff;\">Level<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>alloc_unit_type_desc <span style=\"color:#0000ff;\">AS<\/span> DataType<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>record_count <span style=\"color:#0000ff;\">AS<\/span> Records<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>page_count <span style=\"color:#0000ff;\">AS<\/span> Pages<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>fragment_count <span style=\"color:#0000ff;\">AS<\/span> Fragments<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>avg_fragmentation_in_percent <span style=\"color:#0000ff;\">AS<\/span> FragPerc<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>min_record_size_in_bytes <span style=\"color:#0000ff;\">AS<\/span> MinRecBytes<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>avg_record_size_in_bytes <span style=\"color:#0000ff;\">AS<\/span> AvgRecBytes<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>max_record_size_in_bytes <span style=\"color:#0000ff;\">AS<\/span> MaxRecBytes<span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ps<span style=\"color:#808080;\">.<\/span>avg_page_space_used_in_percent <span style=\"color:#0000ff;\">AS<\/span> PageSpaceUsedPerc<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">FROM<\/span> <span style=\"color:#008000;\">sys<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#008000;\">indexes<\/span> <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#000000;\">i<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">JOIN<\/span> <span style=\"color:#008000;\">sys<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#008000;\">dm_db_index_physical_stats<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff00ff;\">DB_ID<\/span><span style=\"color:#808080;\">(),<\/span> <span style=\"color:#0000ff;\">DEFAULT<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#0000ff;\">DEFAULT<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#0000ff;\">DEFAULT<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#ff0000;\">'DETAILED'<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#000000;\">ps<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">ON<\/span> <span style=\"color:#000000;\">i<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#ff00ff;\">object_id<\/span> <span style=\"color:#808080;\">=<\/span> <span style=\"color:#000000;\">ps<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#ff00ff;\">object_id<\/span> <span style=\"color:#808080;\">AND<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">i<span style=\"color:#808080;\">.<\/span>index_id <span style=\"color:#808080;\">=<\/span> ps<span style=\"color:#808080;\">.<\/span>index_id<span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in; font-style: normal; font-weight: normal; text-decoration: none\"><span style=\"color:#000000;\"><span style=\"font-size:10pt;\">This view gives you information about Index depth, approximate number of records, average page fullness and average page fragmentation.<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in; font-style: normal; font-weight: normal; text-decoration: none\"><span style=\"color:#000000;\"><span style=\"font-size:10pt;\">Take for example this table:<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><\/p>\n<table border=\"0\" width=\"95%\" cellpadding=\"5\" cellspacing=\"0\">\n<col width=\"256*\" \/>\n<tr>\n<td bgcolor=\"#e6e6e6\" width=\"100%\">\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">IF <span style=\"color:#ff00ff;\">OBJECT_ID<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff0000;\">'dbo.IndexTest'<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">IS<\/span> <span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL<\/span> <\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">DROP<\/span> <span style=\"color:#0000ff;\">TABLE<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexTest<\/span> <span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">GO<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CREATE<\/span> <span style=\"color:#0000ff;\">TABLE<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexTest<\/span> <span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Id<\/span> <span style=\"color:#0000ff;\">INT<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_PK<\/span> <span style=\"color:#0000ff;\">PRIMARY<\/span> <span style=\"color:#0000ff;\">KEY<\/span> <span style=\"color:#0000ff;\">CLUSTERED<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">Uk <span style=\"color:#0000ff;\">INT<\/span> <span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">IdxFill <span style=\"color:#0000ff;\">CHAR<\/span><span style=\"color:#808080;\">(<\/span>800<span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_IdxFill_Dflt<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">DEFAULT<\/span> <span style=\"color:#ff00ff;\">REPLICATE<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff0000;\">'I'<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#000000;\">800<\/span><span style=\"color:#808080;\">),<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">PageFill <span style=\"color:#0000ff;\">CHAR<\/span><span style=\"color:#808080;\">(<\/span>7000<span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_PageFill_Dflt<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">DEFAULT<\/span> <span style=\"color:#ff00ff;\">REPLICATE<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff0000;\">'P'<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#000000;\">7000<\/span><span style=\"color:#808080;\">),<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_U1<\/span> <span style=\"color:#0000ff;\">UNIQUE<\/span> <span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Uk<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#000000;\">IdxFill<\/span><span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">GO<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">INSERT<\/span> <span style=\"color:#0000ff;\">INTO<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexTest<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Id<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">Uk<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">)<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">SELECT<\/span> <span style=\"color:#000000;\">n<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#ff00ff;\">CHECKSUM<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff00ff;\">NEWID<\/span><span style=\"color:#808080;\">())<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">FROM<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">GetNums<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">1000<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">GO<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-size:10pt;\">It contains two integer columns and to fill columns. The fill columns serve the purpose of filling enough pages, so that we get to see multiple levels in the indexes. There are two (implicit) indexes declared on this table. It is filled with 1000 rows using <a href=\"http:\/\/www.sqlmag.com\/Articles\/ArticleID\/103056\/103056.html?Ad=1\" target=\"_blank\">Itzik's GetNums function<\/a>.<\/span><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-size:10pt;\"><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\">SATools<\/span><\/span><span style=\"color:#808080;\"><span style=\"font-family:Courier New, monospace;\">.<\/span><\/span><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\">IndexPhysical<\/span><\/span> returns this information:<\/span><\/p>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><\/p>\n<table border=\"2\" width=\"922\" cellpadding=\"5\" cellspacing=\"0\">\n<col width=\"43\" \/>\n<col width=\"65\" \/>\n<col width=\"89\" \/>\n<col width=\"40\" \/>\n<col width=\"27\" \/>\n<col width=\"79\" \/>\n<col width=\"38\" \/>\n<col width=\"28\" \/>\n<col width=\"48\" \/>\n<col width=\"42\" \/>\n<col width=\"62\" \/>\n<col width=\"62\" \/>\n<col width=\"64\" \/>\n<col width=\"91\" \/>\n<tr>\n<td bgcolor=\"#cccccc\" width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Tbl<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Idx<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">TYPE<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Partition<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Level<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">DataType<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Records<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Pages<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Fragments<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">FragPerc<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">MinRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">AvgRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">MaxRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#cccccc\" width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">PageSpaceUsedPerc<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1000<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1000<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">5<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0.4<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">7815<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">7815<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">7815<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">96.5530022238695<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1000<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">53.5128984432913<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">11<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0.457128737336299<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_U1<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">NONCLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1000<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">112<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">30<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">25<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">809<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">809<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">809<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">89.437509266123<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_U1<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">NONCLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">112<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">27<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">27<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">41.6412774894984<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_U1<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">NONCLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">27<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">6<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">6<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">45.1754385964912<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"43\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_U1<\/span><\/p>\n<\/td>\n<td width=\"89\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">NONCLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">6<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">811<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">60.2421546824809<\/span><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><\/p>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><span style=\"font-size:10pt;\">It shows nicely the tree levels of the clustered index and the four levels of the nonclustered index and how many records and how many pages are part of each index level.<\/span><\/p>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><\/p>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><span style=\"font-size:10pt;\">If you have a table, that is partitioned like this<\/span><\/p>\n<p style=\"margin-bottom: 0in; line-height: 100%\"><\/p>\n<table border=\"0\" width=\"95%\" cellpadding=\"5\" cellspacing=\"0\">\n<col width=\"256*\" \/>\n<tr>\n<td bgcolor=\"#e6e6e6\" width=\"100%\">\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CREATE<\/span> <span style=\"color:#0000ff;\">PARTITION<\/span> <span style=\"color:#0000ff;\">FUNCTION<\/span> <span style=\"color:#000000;\">IndexTest_PF<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#0000ff;\">SMALLINT<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#0000ff;\">RANGE<\/span> <span style=\"color:#808080;\">LEFT<\/span> <span style=\"color:#0000ff;\">FOR<\/span> <span style=\"color:#0000ff;\">VALUES<\/span> <span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">0<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<br \/><\/span><span style=\"color:#0000ff;\">GO<br \/>CREATE<\/span> <span style=\"color:#0000ff;\">PARTITION<\/span> <span style=\"color:#000000;\">SCHEME IndexTest_PS<\/span> <span style=\"color:#0000ff;\">AS<\/span> <span style=\"color:#0000ff;\">PARTITION<\/span> <span style=\"color:#000000;\">IndexTest_PF<\/span> <span style=\"color:#808080;\">ALL<\/span> <span style=\"color:#0000ff;\">TO<\/span> <span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">[PRIMARY]<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<br \/><\/span><span style=\"color:#0000ff;\">GO<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CREATE<\/span> <span style=\"color:#0000ff;\">TABLE<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexTest<\/span> <span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Id<\/span> <span style=\"color:#0000ff;\">INT<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ArchiveInd<\/span> <span style=\"color:#0000ff;\">SMALLINT<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_ArchiveInd_Dflt<\/span> <span style=\"color:#0000ff;\">DEFAULT<\/span> <span style=\"color:#000000;\">0<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">PageFill<\/span> <span style=\"color:#0000ff;\">CHAR<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">3000<\/span><span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">NOT<\/span> <span style=\"color:#808080;\">NULL<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_PageFill_Dflt<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">DEFAULT<\/span> <span style=\"color:#ff00ff;\">REPLICATE<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff0000;\">'P'<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#000000;\">3000<\/span><span style=\"color:#808080;\">),<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">CONSTRAINT<\/span> <span style=\"color:#000000;\">IndexTest_PK<\/span> <span style=\"color:#0000ff;\">PRIMARY<\/span> <span style=\"color:#0000ff;\">KEY<\/span> <span style=\"color:#0000ff;\">CLUSTERED<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Id<\/span><span style=\"color:#808080;\">,<\/span> <span style=\"color:#000000;\">ArchiveInd<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#0000ff;\">ON<\/span> <span style=\"color:#000000;\">IndexTest_PS<\/span> <span style=\"color:#808080;\">(<\/span> <span style=\"color:#000000;\">ArchiveInd<\/span><span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"color:#0000ff;\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">GO<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">INSERT<\/span> <span style=\"color:#0000ff;\">INTO<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">IndexTest<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">(<\/span><span style=\"color:#000000;\">Id<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\">ArchiveInd<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">SELECT<\/span> <span style=\"color:#000000;\">n<\/span><span style=\"color:#808080;\">,<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0in\" lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#ff00ff;\">SIGN<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff00ff;\">ABS<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff00ff;\">CHECKSUM<\/span><span style=\"color:#808080;\">(<\/span><span style=\"color:#ff00ff;\">NEWID<\/span><span style=\"color:#808080;\">()))<\/span> <span style=\"color:#808080;\">%<\/span> <span style=\"color:#000000;\">5<\/span><span style=\"color:#808080;\">)<\/span><\/span><\/span><\/p>\n<p lang=\"zxx\"><span style=\"font-family:Courier New, monospace;\"><span style=\"font-size: 8pt; font-size:8pt;\"><span style=\"color:#0000ff;\">FROM<\/span> <span style=\"color:#000000;\">dbo<\/span><span style=\"color:#808080;\">.<\/span><span style=\"color:#000000;\">GetNums<\/span><span style=\"color:#808080;\">(2<\/span><span style=\"color:#000000;\">000<\/span><span style=\"color:#808080;\">)<\/span> <span style=\"color:#808080;\">;<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-size:10pt;\"><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\">SATools<\/span><\/span><span style=\"color:#808080;\"><span style=\"font-family:Courier New, monospace;\">.<\/span><\/span><span style=\"color:#000000;\"><span style=\"font-family:Courier New, monospace;\">IndexPhysical<\/span><\/span> returns this information:<\/span><\/p>\n<p style=\"margin-bottom: 0in\"><\/p>\n<table border=\"1\" width=\"898\" cellpadding=\"5\" cellspacing=\"0\">\n<col width=\"44\" \/>\n<col width=\"65\" \/>\n<col width=\"66\" \/>\n<col width=\"40\" \/>\n<col width=\"27\" \/>\n<col width=\"79\" \/>\n<col width=\"38\" \/>\n<col width=\"28\" \/>\n<col width=\"48\" \/>\n<col width=\"42\" \/>\n<col width=\"62\" \/>\n<col width=\"62\" \/>\n<col width=\"64\" \/>\n<col width=\"91\" \/>\n<tr>\n<td bgcolor=\"#b3b3b3\" width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Tbl<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Idx<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">TYPE<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Partition<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Level<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">DataType<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Records<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Pages<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">Fragments<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">FragPerc<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">MinRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">AvgRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">MaxRecBytes<\/span><\/p>\n<\/td>\n<td bgcolor=\"#b3b3b3\" width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">PageSpaceUsedPerc<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">374<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">187<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">4<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1.6<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">74.47<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">187<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">34.63<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1626<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">813<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">6<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0.62<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3013<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">74.47<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">813<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">50.2<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"44\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest<\/span><\/p>\n<\/td>\n<td width=\"65\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IndexTest_PK<\/span><\/p>\n<\/td>\n<td width=\"66\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">CLUSTERED<\/span><\/p>\n<\/td>\n<td width=\"40\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"27\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">2<\/span><\/p>\n<\/td>\n<td width=\"79\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">IN_ROW_DATA<\/span><\/p>\n<\/td>\n<td width=\"38\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">3<\/span><\/p>\n<\/td>\n<td width=\"28\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"48\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">1<\/span><\/p>\n<\/td>\n<td width=\"42\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"62\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"64\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">13<\/span><\/p>\n<\/td>\n<td width=\"91\">\n<p><span style=\"font-size: 6pt; font-size:8pt;\">0.53<\/span><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-size:10pt;\">Here you can see that the clustered index has two partitions. Partition 1 has two index levels and partition 2 has three index levels.<\/span><\/p>\n<p style=\"margin-bottom: 0in\"><\/p>\n<p style=\"margin-bottom: 0in\"><span style=\"font-size:10pt;\">I both cases you can see how badly (in percent) each index level is fragmented (Column FragPerc). You also can get information about the length of each record in the index (level 0) or the length of each key (level &gt; 0). In these examples Min, Avg and Max Bytes per Record are the same, because all fields are fixed length. If you have variable length fields, you will get different values here.<\/span><\/p>\n<p style=\"margin-bottom: 0in\">\n<p style=\"margin-bottom: 0in\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this post I am going to start a series about queries that I find helpful while researching indexes and index issues. In fact, because I use them often, I encapsulated them in views. The first one is SATools.IndexPhysical: CREATE <a href=\"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/\">[more&#8230;]<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-general"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Index Views: IndexPhysical<\/title>\n<meta name=\"description\" content=\"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Index Views: IndexPhysical\" \/>\n<meta property=\"og:description\" content=\"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/\" \/>\n<meta property=\"og:site_name\" content=\"sqlity.net\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sqlity.net\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-26T21:50:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-11-13T19:04:29+00:00\" \/>\n<meta name=\"author\" content=\"Sebastian Meine\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sqlity\" \/>\n<meta name=\"twitter:site\" content=\"@sqlity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sebastian Meine\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/\"},\"author\":{\"name\":\"Sebastian Meine\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/bcffd8c572bc2f1bd10fdba80135e53c\"},\"headline\":\"Index Views: IndexPhysical\",\"datePublished\":\"2010-02-26T21:50:43+00:00\",\"dateModified\":\"2014-11-13T19:04:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/\"},\"wordCount\":647,\"commentCount\":0,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/\",\"url\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/\",\"name\":\"Index Views: IndexPhysical\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#website\"},\"datePublished\":\"2010-02-26T21:50:43+00:00\",\"dateModified\":\"2014-11-13T19:04:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/bcffd8c572bc2f1bd10fdba80135e53c\"},\"description\":\"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/73\\\/index-views-indexphysical\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sqlity.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Index Views: IndexPhysical\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/sqlity.net\\\/en\\\/\",\"name\":\"sqlity.net\",\"description\":\"Quality for SQL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sqlity.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/bcffd8c572bc2f1bd10fdba80135e53c\",\"name\":\"Sebastian Meine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g\",\"caption\":\"Sebastian Meine\"},\"sameAs\":[\"http:\\\/\\\/sqlity.net\",\"https:\\\/\\\/x.com\\\/sqlity\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Index Views: IndexPhysical","description":"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/","og_locale":"en_US","og_type":"article","og_title":"Index Views: IndexPhysical","og_description":"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database","og_url":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/","og_site_name":"sqlity.net","article_publisher":"https:\/\/www.facebook.com\/sqlity.net","article_published_time":"2010-02-26T21:50:43+00:00","article_modified_time":"2014-11-13T19:04:29+00:00","author":"Sebastian Meine","twitter_card":"summary_large_image","twitter_creator":"@sqlity","twitter_site":"@sqlity","twitter_misc":{"Written by":"Sebastian Meine","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/#article","isPartOf":{"@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/"},"author":{"name":"Sebastian Meine","@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/bcffd8c572bc2f1bd10fdba80135e53c"},"headline":"Index Views: IndexPhysical","datePublished":"2010-02-26T21:50:43+00:00","dateModified":"2014-11-13T19:04:29+00:00","mainEntityOfPage":{"@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/"},"wordCount":647,"commentCount":0,"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/","url":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/","name":"Index Views: IndexPhysical","isPartOf":{"@id":"https:\/\/sqlity.net\/en\/#website"},"datePublished":"2010-02-26T21:50:43+00:00","dateModified":"2014-11-13T19:04:29+00:00","author":{"@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/bcffd8c572bc2f1bd10fdba80135e53c"},"description":"This post introduces the view IndexPysical that gives returns information about the physical properties of tables in the database","breadcrumb":{"@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sqlity.net\/en\/73\/index-views-indexphysical\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sqlity.net\/en\/"},{"@type":"ListItem","position":2,"name":"Index Views: IndexPhysical"}]},{"@type":"WebSite","@id":"https:\/\/sqlity.net\/en\/#website","url":"https:\/\/sqlity.net\/en\/","name":"sqlity.net","description":"Quality for SQL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sqlity.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/bcffd8c572bc2f1bd10fdba80135e53c","name":"Sebastian Meine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4ab0a6d02dd494849a584a2c3c8bc3bdcef1d0aa5f87e98bf905dbdb9ad2ce3a?s=96&d=mm&r=g","caption":"Sebastian Meine"},"sameAs":["http:\/\/sqlity.net","https:\/\/x.com\/sqlity"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXuw-1b","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}