首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of SQL server 2000 computer. The server contains a database named MedicalRecords. Users access medical
You are the administrator of SQL server 2000 computer. The server contains a database named MedicalRecords. Users access medical
admin
2009-05-19
65
问题
You are the administrator of SQL server 2000 computer. The server contains a database named MedicalRecords. Users access medical records by using the PatientID field. This field is the clustered primary key for the Patients table. When users try to access medical records, the database responds slowly. You examine the database options as shown in the exhibit.
You want to accelerate query response time and minimize administrative overhead. How should you reconfigure the database?
选项
A、Create a SQL Server Agent job to execute the UPDATE STATISTICS statement, and schedule the job to run weekly.
B、Select the Auto Update Statistics check box.
C、Run the database maintenance plan wizard, and accept the default settings.
D、Rebuild the primary key as a nonclustered primary key.
E、Clear the Auto Create Statistics check box.
答案
B
解析
Explanation: The Auto Update Statistics option is selected by default but in the Exhibit it has been disabled. Apparently the statistics are out-of-date and the queries are running slowly. The Auto Update Statistics option should be enabled to increase performance and minimize administrative overhead.
Note: 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 table property dialog box is checked.
Incorrect Answers:
A: It would require some administrative effort to set up job that update the statistics. Just selecting the Auto Update Statistics check is a better solution.
C: The Database Maintenance Plan Wizard cannot be used to recreate the statistics, which are the main problem at the moment.
Note: 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-todate 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.
D: Looking at the exhibit we see that this is a statistics problem, not a index problem.
Note: A nonclustered index is similar to an index in a textbook. With this type of index, the data is stored in one place and the index in another. These indexes, however, point to the storage location of the data. Nonclustered indexes should be used on columns that contain a large number of distinct values; for queries that do not return large result sets; and for columns that are frequently involved in search conditions of a query that return exact matches. A clustered index, on the other hand, determines the physical order of data in a table. The PRIMARY KEY index automatically creates a clustered index as it is used to identify a row unless a nonclustered index is specified.
E: When set the Auto Create Statistics check box is checked, statistics are automatically created on columns that are used in a predicate. Adding statistics improves query performance because the SQL Server query optimizer can better determine how to evaluate a query. If the statistics are not used, SQL Server automatically deletes them. When this check box is cleared, statistics are not automatically created.
转载请注明原文地址:https://www.kaotiyun.com/show/suhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
School-agechildrenshouldparticipatein60minutesormoreofmoderatetovigorousphysicalactivitydaily,accordingtoanex
Afterbeinginvolvedinanaccident,youwerelookedafterbyanotherperson.Writealetterofthanks:1)mentioningwhath
Herearesomemanagementtoolsthatcanbeusedtohelpyouleadapurposefullife.1.UseYourResourcesWisely.Yourdecisi
"Thisisareallyexcitingtime—aneweraisstarting,"saysPeterBazalgette,thechiefcreativeofficerofEndemol,thetelev
Writealettertorecommendyourstudent,LiXu,forapositionofadministratorinacompany.Youshouldincludethedetailsyo
Thefollowingscenariowillbeusedforquestions29and30.Johnisanetworkadministratorandhasbeentoldbyoneofhisnet
Youaretheadministratorofyourcompany’snetwork.Thenetworkisconfiguredasshownintheexhibit.YouwanttoinstallWi
随机试题
与原发性肝癌有关的肝病是
张某2009年1月在提供了5000元保证金后开始到甲公司上班,但是一直到2009年3月,甲公司才与其签订书面的劳动合同。工作期间,甲公司多次安排张某加班,但均未支付加班费。2009年4月甲公司打算解除其与张某的劳动合同,双方就此发生了争议。2009年4
工程施工图设计文件应根据()等编制。
路由器的作用有()。
雪的可爱处在于它覆盖大地没有差别。冬夜拥被而眠,觉寒气袭人,蜷缩不敢动,凌晨张开眼皮,窗棂窗帘隙处有强光_________,大异往日,起来推窗一看,啊!白茫茫一片银世界。竹枝松叶顶着一堆堆的白雪,权芽老树也都镶了银边,朱门与蓬户同样的蒙受它的沾被,没有差别
小朋友在计算时往往掰着手指算,这种思维是()。
设讨论f(x)的连续性,并求其单调区间、极值与渐近线.
设随机变量X的分布函数为求P{0.4<X≤1.3},P{X>0.5},P{1.7<X≤2}以及概率密度f(x).
给定程序MODI1.C中函数fun的功能是:从低位开始取出长整型变量S中奇数位上的数,依次构成一个新数放在t中。高位仍在高位,低位仍在低位。例如,当S中的数为:7654321时,t中的数为:7531。请改正程序中的错误,使它能得出正确的结果。注意:不要改
—Mustwesendinourplanthisweek?—No,______;youcansenditinnextweek.
最新回复
(
0
)