首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores inventory data. Another data
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores inventory data. Another data
admin
2009-05-19
27
问题
You are the administrator of a SQL Server 2000 computer. The server contains a database that stores inventory data. Another database administrator has created a number of scheduled jobs to maintain the inventory database. Each weeknight the following jobs occur.
-- A BULK INSERT job imports data at 10:00 P.M.
-- Indexes are rebuilt at 10:15 P.M.
-- Data integrity checks are performed at 10:30 P.M.
-- A differential backup is performed at 10:45 P.M.
-- A DBCC SHRINKDATABASE job runs at 11:00 P.M.
You notice that the final job often fails and returns the following error message: "Server Msg 3140, Level 16, State 3. Could not adjust the space allocation for file ’inventory_data’."
You need to ensure that the final job runs without errors. What should you do?
选项
A、Create a new DBCC SHRINKFILE job to shrink the inventory_data file. Schedule the new job to run at the same time as the DBCC SHRINKDATABASE job.
B、Modify the DBCC SHRINKDATABASE job so that it uses DBCC SHRINKFILE statement to shrink each file individually.
C、Increase the time between the data integrity checks and the differential backup.
D、Increase the time between the differential backup and the DBCC SHRINKDATABASE job.
答案
D
解析
Explanation: The DBCC SHRINKDATABSE cannot be executed until the previous job step, the differential backup, has been completed. We should increase the time between these two job steps, or even better configure the last job step to run only after the differential backup has been completed.
Note: The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis but shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement.
Incorrect Answers:
A: The DBCC SHRINKDATABASE command shrinks the whole database. Shrinking a single data file would not be the optimal solution to shrink the database.
Note: The DBCC SHRINKFILE statement shrinks the size of the specified data or log file in the related database and is used to reduce the size of a file to smaller than its originally created size. The minimum file size for the file is then reset to the newly specified size.
By using the EMPTYFILE argument in conjunction with the DBCC SHRINKFILE statement before executing the ALTER DATABASE statements, we can remove the data in a file. Other users can be working in the database when the file is shrunk, thus the database being shrunk does not have to be in single-user mode when using the DBCC SHRINKFILE statement.
The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis but shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement. These two functions thus adjust the space allocation on a per-file basis and cannot run at the same time.
B: The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis already. There is no need to use the DBCC SHRINKFILE statement to shrink each file individually.
Note: The DBCC SHRINKDATABASE statement shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement.
C: Database integrity checks such as the DBCC CHECHDB statement should be run before any major system changes, such as a hardware or software upgrade, or after a hardware failure, or if a system problem is suspected. It is not necessary to run database integrity checks as part of the normal backup or maintenance procedures.
转载请注明原文地址:https://kaotiyun.com/show/LuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
In2009theEuropeanCommissioncarriedoutaninvestigationintoMicrosoft.TheAmericansoftwaregianttiedInternetExplorer,
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
LastThursday,theFrenchSenatepassedadigitalservicestax,whichwouldimposeanentirelynewtaxonlargemultinationalst
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Evenintraditionaloffices,"thelinguafrancaofcorporateAmericahasgottenmuchmoreemotionalandmuchmoreright-brained
Notlongago,chiefexecutiveofficers(CEOS)werelandedasheroes,leadersofthebraveneweconomy.BillGatesandJackWelchw
设置网络打印机,不允许每个连接到该计算机的用户都使用该网络打印机,只允许用户Administrators和Powerusers使用本地打印机。
Guest账户和Administrator账户一样是由系统建立的,不能被禁用。
随机试题
患者男,25岁,1日前突发高热,伴胸痛、咳嗽,黄色脓性痰,左耳痛及咽痛明显,未作特殊处理。查体:T37.8℃,肺部听诊胸骨两侧可闻及水泡音,专科检查:咽部充血严重,电耳镜检查示左耳鼓膜膨出,紧张部周边可见呈放射状的扩张血管,鼓窦区压痛明显,纯音听阈45dB
每周2次的外文缩写是()。
某公司的两个部门分别向租赁公司租赁设备。如果两个部门分别各自租赁,则A部门费用为$1000,B部门费用为$500。如果两个部门一起向租赁公司租赁设备,则两部门的共同费用为$1200。在独立成本分配法和增量成本分配法(以A部门为主要使用部门)下,A部门和B部
甲公司从事房地产开发经营业务,对出租的商品房、土地使用权和商铺均采用成本模式进行后续计量。2012年度发生的有关交易或事项如下:(1)1月1日,因商品房滞销,董事会决定将两栋商品房用于出租。1月20日,甲公司与乙公司签订租赁合同并已将两栋商品房以经营租赁
某企业拟以“2/10,n/40”的信用条件购入一批货物,则放弃现金折扣的机会成本为( )。
甲公司向乙银行申请贷款,还款日期为2020年12月31日。丙公司为该债务提供保证担保,约定保证方式为连带责任保证,但未约定保证期间。后甲公司申请展期,与乙银行就还款期限作了变更,还款期限延至2021年8月1日,但未征得丙公司的书面同意。展期到期,甲公司无力
()大于等于100%时,说明在数量上完成或超额完成了招聘任务。[2015年5月、2012年11月、2011年11月三级真题]
下列不属于新课程结构特点的是()。
A.Ireallycan’twaitthatlong.B.Thebusstopisnotfarfromhere.C.Itcantakeyourightthere.A:Excuseme.Couldyou
Socialpsychologistsarcusedtohearingthattheirexperimentsareawasteoftimebecausetheyjustprovetheobvious,andtel
最新回复
(
0
)