首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
38
问题
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
微软认证
相关试题推荐
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
Writealettertoacompanydecliningajoboffer.Inyourletter,youshouldappreciatethejoboffer,andstateyourreason(s)
Supposeyouarethepersonnelmanagerofacompanyandyou’vedecidedtheapplicantnamedZhangWeiisthebestcandidateforth
SupposeyouphonedyourfriendMaryseveraltimesyesterdaybutshedidn’tansweryourcallatall.Writeheranemailto1
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
LastThursday,theFrenchSenatepassedadigitalservicestax,whichwouldimposeanentirelynewtaxonlargemultinationalst
NextmonthBritonswillhaveyetmoresmartphonestochoosefrom,whendevicesfromWiko,atwo-year-oldFrenchcompany,goons
GivingmillionsofexistingPayPalcustomerstheabilitytobuyattheclickofabuttonhasenormouspotentialforincreasing
Emilyislisteningtonetworktrafficandcapturingpasswordsastheyaresenttotheauthenticationserver.Sheplanstouseth
随机试题
股票价值的评价是指_______的评价。
下列哪种肝脏病变无明显男女性别差异
患者,男性,73岁。肺癌晚期,现进行化学治疗。常抱怨家属照顾欠周到。今天早上对护士说:“你们治来治去,怎么也治不好,干脆不治了!”下列护士的答复中,最恰当的是
凡纳入自理报检单位范围的单位,首次办理报检业务时,须持有关证件向当地工商机构申请办理备案登记手续。
在利用GB/T2828.1对产品进行抽样检验时,选用一次抽样,每批N=275件。A、B两类水平的不合格率分别为1.0%,4.0%,采用检验水平Ⅲ。A类不合格的正常一次抽样方案为()。
某市儿童福利院康复部,每天都会有一些家长(大多数是母亲)陪同自己的孩子前来接受康复治疗。该部门的社会工作者想为这些母亲开展一个支持性的小组活动。问题1.你认为,社会工作者应该采取怎样的介入策略?2.在工作中,社会工作者应特别注意哪些问题?
根据所给资料,回答下列题。2015年,某市非公有制经济实现增加值348.12亿元,比上年净增加23.69亿元.非公有制经济增加值占地区生产总值的比重为57.5%,其中,民营经济增加值335.24亿元,外商经济增加值11.84亿元.港澳台经济增加值
对于西周时期礼与刑关系的表述,正确的有()。
Drinkingwaterandwaterfordomesticuseoftencomefromgroundwater.Inordertoprotectthiswater,localwaterauthoritiesc
Readthetextbelowabouthowtoorderproducts.Inmostofthelines(41-52)thereisoneextraword.Itiseithergrammaticall
最新回复
(
0
)