首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of SQL Server 2000 computer. The server contains a database named Inventory. The database has a set of
You are the administrator of SQL Server 2000 computer. The server contains a database named Inventory. The database has a set of
admin
2009-05-19
47
问题
You are the administrator of SQL Server 2000 computer. The server contains a database named Inventory. The database has a set of tables that track the location of parts. The tables are configured as shown in the Database Schema exhibit.
You examine the indexes in the PartsLocations table. The indexes are configured as shown in the Indexes exhibit.
You also examine the contiguity of the PK_partsLocations index and receive the following results:
DBCC SHOWCONTIG scanning ’PartsLocations’ table...
Table: ’PartsLocations’ (1); index ID: 1, database ID: 6
TABLE level scan performed.
- Pages Scanned................................: 3000
- Extents Scanned..............................: 750
- Extent Switches..............................: 502
- Avg. Pages per Extent........................: 4.0
- Scan Density [Best Count:Actual Count].......: 33.33% [1:3]
- Logical Scan Fragmentation...................: 33.33%
- Extent Scan Fragmentation....................: 33.33%
- Avg. Bytes Free per Page.....................: 1166.0
- Avg. Page Density (full).....................: 85.77%
You need to improve the performance of the queries that join this table to the Parts table and the Locations table. What should you do?
选项
A、Re-create the PK_PartsLocations index as a clustered index.
B、Re-create the IX_PartsLocations_PartsID as a clustered index.
C、Re-create the IX_PartsLocations_LocationId as a clustered index.
D、Re-create the PK_PartsLocations index as a nonclustered index.
答案
A
解析
Explanation:The output of the DBCC SHOWCONTIG shows that the clustered index of the table is fragmented. Both Logical Scan Fragmentation and Extent Scan Fragmentation are above 10%. The clustered index PK_PartsLocations should be rebuilt.
Note: In general, you need to do very little in terms of index maintenance. However, indexes can become fragmented. You can use the DBCC SHOWCONTIG command to report on the fragmentation of an index.
You can use either the Extent Scan Fragmentation value or the Logical Scan Fragmentation value to determine the general level of fragmentation in a table. Logical Scan Fragmentation and, to a lesser extent, Extent Scan Fragmentation values give the best indication of a table’s fragmentation level. Both these values should be as close to zero as possible (although a value from 0% through 10% may be acceptable).
Incorrect Answers:
B, C: There already exists a clustered index, the PK_PartsLocations index. A table can only contain one clustered index.
D: A clustered index is faster that a non-clustered index. We should rebuild the clustered index, not create a nonclustered index instead.
转载请注明原文地址:https://kaotiyun.com/show/muhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Inthe1930s,anAmericanmeatcompanycameoutwithaspicedhamproductsoldinacan.Beforelong,Spam,asitwascalled,be
CigarettesmokingisahealthhazardofsufficientimportanceintheUnitedStatestowarrantappropriateremedialaction.Itwa
AlmosteveryyearsincetheendofthefinancialcrisishasstartedwithrosyexpectationsamongAmericanforecasters,andthis
Youarethepresidentofacompany.WriteamemotoSallyCooper,theHRmanagerontheemployeestrainingoncomputerto,1
Herearesomemanagementtoolsthatcanbeusedtohelpyouleadapurposefullife.1.UseYourResourcesWisely.Yourdecisi
"Thisisareallyexcitingtime—aneweraisstarting,"saysPeterBazalgette,thechiefcreativeofficerofEndemol,thetelev
DrRichardBergland,abrainresearcherattheHarvardMedicalSchool,haswrittenapapersuggestingthathumanbrainisbasica
Evenintraditionaloffices,"thelinguafrancaofcorporateAmericahasgottenmuchmoreemotionalandmuchmoreright-brained
TheoutbreakofswinefluthatwasfirstdetectedinMexicowasdeclaredaglobalepidemiconJune11,2009.Itisthefirstwo
Faceit,moviefans:theDVDisdestinedtobedeadasadoornail.OnlyafewBlockbusterstoresarestillopen.Netflix’s(o
随机试题
高速公路改建加宽时,应在新旧路基填方边坡的衔接处开挖台阶,其宽度一般为()m。
指出肉豆蔻的功效及临床主要应用。
引起抗利尿激素分泌最重要的因素是
下列各项中,属于我国现行进口关税税率中的优惠税率有()。
2012年9月25日,我国第一艘航空母舰()正式交接人列.标志着我国海军跨入航母时代。
危险品运输经许可由铁路、公路、水路运输的危险品仅限于“危险物品名索引表”的规定。未列载的危险品需提出鉴定书审批。()
在上文横线上填入相关词语,顺序正确的一组是()。在[e]处恰当的措辞是()。
毛泽东思想形成的时代条件是()。
在窗体上有一个名称为CD1的通用对话框和一个名称为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗口的标题为“保存”,缺省文件名为“ABC”,在“文件类型”栏中显示*.txt。则能够满足上述要求的程序是()。
Whatisaknowledgeworker?Knowledgeworkersarepeoplewhoroutinelyuseacomputerintheirworktoenhancetheirproductivit
最新回复
(
0
)