首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. You perform full database b
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. You perform full database b
admin
2009-05-19
56
问题
You are the administrator of a SQL Server 2000 computer. The server contains a database named Sales. You perform full database backups every two days. You also run regular database consistency checks on the server. The most recent check of the Sales database returns the following message.
“CHECKDB found 0 allocation errors and 9 consistency errors in the table ’Orders’ (object ID 214575782).”
You want to correct the data integrity errors while minimizing the amount of data lost. What should you do?
选项
A、Disconnect users from the Sales database.
Enable the single user database option.
Execute the DBCC CHECKTABLE statement for the Orders table, and specify the
REPAIR_REBUILD option.
B、Disconnect users from the Sales database.
Enable the DBO use only database option.
Execute the DBCC CHECKTABLE statement for the Orders table, and specify the
REPAIR_REBUILD option.
C、Disconnect users from the Sales database.
Execute the RESTORE DATABASE statement for the Sales database
D、Execute the DBCC CLEANTABLE statement for the Orders table.
E、Execute the sp_table_validation stored procedure for the Orders table.
答案
A
解析
Explanation: We should repair the database with the DBCC CHECKTABLE REPAIR_REBUILD command. We should run this repair statement when the database is configured to single user.
Note: DBCC CHECKTABLE checks the integrity of the data, index, text, ntext, and image pages for the specified table or indexed view. DBCC CHECKTABLE can take a specified repair option to repair the found errors but must be in single-user mode to use a repair option.
It can specify the REBUILD_FAST option, which performs minor, non time-consuming repair actions such as repairing extra keys in nonclustered indexes and can be done quickly and without risk of data loss; and it can also specify the REPAIR_REBUILD option, which performs all repairs that can done by REPAIR_FAST and as well as time-consuming repairs such as index rebuilding. These repairs can also be done without risk of data loss.
Incorrect Answers:
B: The database option DBO use only, would only allow the database owner running the database. This might be too restrictive.
C: We are not told when how often consistency checks are performed but assuming that consistency occurs more frequently than the database backups then using RESTORE DATABASE to restore a database from the last full backup would result in the loss of data entered into the database since the last full database backup was performed. This would result in data loss.
D: DBCC CLEANTABLE is used to reclaim space after a variable length column or a text column is dropped using the ALTER TABLE DROP COLUMN statement.
E: The sp_table_validation stored procedure returns rowcount or checksum information on a table or indexed view, or compares the provided rowcount or checksum information with the specified table or indexed view. This stored procedure is used in replication and checks that the structure of the table being replicated between two tables are identical, i.e., that the tables have the same columns existing in the same order, same data types and lengths, and same NULL/NOT NULL conditions.
转载请注明原文地址:https://kaotiyun.com/show/wuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Imaginativeworkssuchasnovels,plays,films,fairytales,andlegendspresentamoreaccurateandmeaningfulpictureofhuman
AlmosteveryyearsincetheendofthefinancialcrisishasstartedwithrosyexpectationsamongAmericanforecasters,andthis
Writeanessayof160-200wordsbasedonthefollowingtable.Youressayshould1.describethechangesintheaveragefamilyex
BarackObamaspentmuchtimeonthecampaigntrailproposingadramaticvisiontochangenotonlytheUnitedStatesforthebett
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
MireilleGuiliano,achampagnecompanyexecutive,capturedtheattentionoffrustrateddieterswithherjoyoflifeinthe2005
DrRichardBergland,abrainresearcherattheHarvardMedicalSchool,haswrittenapapersuggestingthathumanbrainisbasica
NextmonthBritonswillhaveyetmoresmartphonestochoosefrom,whendevicesfromWiko,atwo-year-oldFrenchcompany,goons
通过【网上邻居】查找网上计算机和共享文件资源,IP为“202.204.54.23”,主机名为administrator,共享文件夹名为“tools”。
随机试题
A.渗出B.白细胞渗出C.血管反应D.炎症介质的释放炎症最特征性的变化是
胃蠕动波的频率为每分钟
香港地区企业生产的药品取得何证后方可进口()
会计软件应当记录生成用户操作日志,确保日志的安全、完整。()
企业难以将某项变更区分为会计政策变更还是会计估计变更的,应将其作为会计政策变更处理。()
(2014年)不考虑其他因素,下列单位和个人中属于甲公司关联方的有()。
甲公司持有在境外注册的乙公司80%股权,能够对乙公司的财务和经营政策实施控制。甲公司以人民币为记账本位币,乙公司以港币为记账本位币,发生外币交易时甲公司和乙公司均采用交易日的即期汇率进行折算。(1)2×17年10月20日,甲公司以每股4欧元的价格购入丙公
在找工作的过程中,有面试,就有曙光。面试的成功与否,除了面试官如何看你的条件及个人素质外,主要取决于他们如何评价你在面试中总的表现。【T1】大多数人在面试中处于被动地位,竭尽全力回答提出的任何问题。(passiveversion)一种更好的方法是控制局面
RecentlytheBarbicanmuseuminLondonheldanexhibitioncalledtheRainRoom.Duringthetimethisexhibitionwasopen,myTwi
A、Theyinvitedhimtoaparty.B、Theyaskedhimtomakeaspeech.C、Theygaveaspecialdinnerforhim.D、Theyinvitedhiswife
最新回复
(
0
)