首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
46
问题
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
微软认证
相关试题推荐
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
[A]Butworkisunderwaytogetcomputerstocapturehumanlifeandrememberitaspeopledo—recallingbitsofexperiencethata
Directions:Inthissection,youareaskedtowriteanessaybasedonthefollowinginformation.Makecommentsandexpressy
MireilleGuiliano,achampagnecompanyexecutive,capturedtheattentionoffrustrateddieterswithherjoyoflifeinthe2005
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
Americanfarmershavebeencomplainingoflaborshortagesforseveralyearsnow.Givenamulti-yeardeclineinillegalimmigrati
TheoutbreakofswinefluthatwasfirstdetectedinMexicowasdeclaredaglobalepidemiconJune11,2009.Itisthefirstwo
TheoutbreakofswinefluthatwasfirstdetectedinMexicowasdeclaredaglobalepidemiconJune11,2009.Itisthefirstwo
随机试题
患者女性,20岁,因失恋口服敌敌畏中毒后30min来诊。查体:浅昏迷状态,呼吸促,双侧瞳孔缩小,大汗,双肺水泡音,肌震颤。来诊后采取的首要抢救措施是
下列关于醚类化合物错误的说法是
在体内代谢过程中有节约蛋白质作用的营养素是()。
A.肺胃肾B.肝脾肾C.心肾肺D.胃肝脾E.脾肾肺消渴的病位主要在
【背景资料】某机电安装工程竣工验收后投入使用。在保修期内,该工程的计算机房由甲供的风机盘管的附件(冷冻水柔性接管)发生断裂而漏水,使建筑装修及计算机均遭受损失。为此,用户发生安装工程质量投诉,经查冷冻水柔性接管提前老化,属于产品质量问题。经返工更换新型柔
证券公司发行债券,除应当符合《公司法》规定的条件外,还需满足的条件有()。
甲公司拥有乙公司80%的有表决权股份,能够控制乙公司财务和经营决策。2016年6月1日,甲公司将本公司生产的一批产品出售给乙公司,售价为600万元(不含增值税),成本为400万元,未计提存货跌价准备。至2016年12月31日,乙公司已对外出售该批存货的20
全国各族人民
Internet实现多个广域网与局域网互联所使用的设备是
Amicrophoneenablesasofttonetobeamplified,thusmakingitpossiblethegentlerenditionsofromanticlovesongsinalarg
最新回复
(
0
)