首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. The database is configured
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. The database is configured
admin
2009-05-19
44
问题
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. The database is configured as shown in the exhibit.
In the last six months, the database has grown by 4 GB. Users report that query response time has slowed. The options set up on the database are shown in the Database Options exhibit.
You want to accelerate query response time. What should you do?
选项
A、Update the database statistics.
B、Add indexes to the foreign key fields.
C、Truncate the transaction log.
D、Run the database maintenance plan wizard.
E、Drop primary keys from all tables.
答案
B
解析
Explanation: A FOREIGN KEY is a column or combination of columns used to establish and enforce a link between the data in two tables and should be indexed because changes to PRIMARY KEY constraints are checked with FOREIGN KEY constraints in related tables and FOREIGN KEY columns are often used in join criteria when the data from related tables is combined in queries by matching the column(s) in the FOREIGN KEY constraint of one table with the primary or unique key column(s) in the other table.
These indexes allow SQL Server 2000 to find related data in the foreign key table quicker. Although creating this index is not a requirement, a foreign key relationship between two tables indicates that the two tables have been optimized to be combined in a query that uses the keys as its criteria.
Incorrect Answers:
A: SQL Server keeps statistics about the distribution of the key values in each index and uses these statistics to determine which index would be the best index to use for a particular query process. As the data in a column changes, index and column statistics can become out-of-date.
This can hinder the query optimizer’s ability to make optimal decisions on how to process a query. As a result query performance will deteriorate. When statistics become out-of-date they can be updated automatically if the auto update statistics check box on the tables property dialog box is checked. The exhibit shows that this check box is checked; therefore it is not out-of-date statistics that is hampering query performance.
C: Old transaction log records that are no longer necessary for recovering or restoring a database should be deleted to make way for new log records. The process of deleting these old log records to reduce the size of the logical log is called truncating the log. However, the active portion of the transaction log can never be truncated.
The active portion of the log is the part of the log needed to recover the database at any time, so must have the log images needed to roll back all incomplete transactions. It must always be present in the database in case the server fails because it will be required to recover the database when the server is restarted.
This truncation occurs automatically at the completion of any BACKUP LOG statement or every time a checkpoint is processed, provided the database is using the Simple Recovery model. This includes both explicit checkpoints resulting from a CHECKPOINT statement and implicit checkpoints generated by the system.
D: The Database Maintenance Plan Wizard can be used to set up the core maintenance tasks necessary to ensure that a database performs well, is regularly backed up, and is checked for inconsistencies.
The Database Maintenance Plan Wizard creates a SQL Server 2000 job that performs these maintenance tasks automatically at scheduled intervals and can be used to reorganize the data on the data and index pages by rebuilding indexes with a new fill factor; compress data files by removing empty database pages; update index statistics to ensure the query optimizer has up-to-date information about the distribution of data values in the tables; perform internal consistency checks of the data and data pages within the database to ensure that a system or software problem has not damaged data; backup the database and transaction log files; and to set up log shipping.
E: Indexes are used to speed up the retrieval of rows for SELECT statements. Because indexes control how the data rows of the table are ordered and have pointers to locate specific data rows they can also increase the speed of updates and deletes. This is because SQL Server must first find a row before it can update or delete the row. Removing the indexes would thus hamper query performance.
转载请注明原文地址:https://kaotiyun.com/show/xuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
AlmosteveryyearsincetheendofthefinancialcrisishasstartedwithrosyexpectationsamongAmericanforecasters,andthis
WhentheresidentsofBuenosAireswanttochangethepesostheydonottrustintothedollarstheydo,theygotoacueva,or"
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Youareanactivememberofthestudentnewspaper.Thenewspaperiscurrentlylookingforajournalistforthesummersemester.
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
"Thisisareallyexcitingtime—aneweraisstarting,"saysPeterBazalgette,thechiefcreativeofficerofEndemol,thetelev
Itstartedsmall.Justapoliticalslogan,pastedontoaposterinabackofficesomewhere;NOEUROin1999.Germany’smainoppo
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Adealisadeal—except,apparently,whenEntergyisinvolved.Thecompany,amajorenergysupplierinNewEngland,provokedjus
随机试题
可用于吗啡类成瘾者戒毒的药物是
某新建加油站按照有关规定建立该加油站的生产安全事故应急预案体系,为保证编制工作顺利进行,成立了以站长为组长的应急预案编制组,按照应急预案编制程序要求,编制组在应急预案编制工作前应完成的工作是()。
某资产年金收益额为8500元,剩余使用年限为20年,假定折现率为10%,则其评估值最接近于()元。
证券投资分析一直是证券市场一个非常重要的产业。( )
2011年1月2日,A公司以银行存款600万元对D公司投资,持有D公司股权的50%,具有重大影响。(1)2011年1月2日D公司可辨认净资产公允价值总额与账面价值相等均为1400万元。(2)2011年3月2日,D公司宣告分配2010年现金股利100万元
下列叙述正确的是()。
在新形势下,积极推动社会管理创新已成为人民法院改进工作思路和工作机制的重大举措,成为人民法院顺应时代发展和社会变迁“能动司法”的应有之义。实践证明:在由传统社会向现代社会转型的时期里,在推进社会管理创新的进程中,人民法院不仅_______,而且______
食物链一词是英国动物学家埃尔顿于1927年首次提出的。如果一种有毒物质被食物链的低级部分吸收,如被草吸收,虽然浓度很低,不影响草的生长,但兔子吃草后有毒物质很难排泄,会在它体内积累;鹰吃大量的兔子,有毒物质会在鹰体内进一步积累。美国国鸟白头鹰之所以面临灭绝
ProfessorLee’smostimportant_____wastheintroductionoftheseminarymethodofinstructionforadvancedstudents.
为了帮你更好地理财,教你几个省钱小窍门。一、设定“远大”的目标,促进自己存钱。比如,计划自己在一年之内买一套正装,两年内买辆车或者五年内买套房子。二、节约日常开支。三、养成省钱的习惯,远离费钱的东西。要学着记账,记清楚买了什么东西,花了多少钱。
最新回复
(
0
)