首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains confidential information about contracts on which y
You are the administrator of a SQL Server 2000 computer. The server contains confidential information about contracts on which y
admin
2009-05-19
24
问题
You are the administrator of a SQL Server 2000 computer. The server contains confidential information about contracts on which your company has placed bids.
Company policy requires that bid information be removed permanently from the database one year after the bid closes. You need to comply with this policy and minimize server overhead.
What should you do?
选项
A、Create a Data Transformation Services (DTS) package to remove bids that have a closing data older than one year.
B、Create a trigger to delete any bids that have a closing data older than one year. Bind the trigger to the bids table for all INSERT, UPDATE, and DELETE events.
C、Create a stored procedure to delete any bids that have a closing data order than one year. Use SQL server agent to schedule the stored procedure to run every night.
D、Create a view that contains a WHERE clause to exclude bids that have a closing date older than one year.
答案
C
解析
Explanation: This scenario requires us to remove old information on a regular basis. First we create a stored procedure which removes all rows where the bid information date is older than the current date minus one year. Then we schedule this procedure to run every day. We would then be sure to never have any rows older than a year in the table.
Note: Stored procedures also improve performance as the stored procedure is cached after it is run. This results in a reduction of physical I/O. We can further reduce Server overhead by scheduling the stored procedure to run during off-peak hours.
Incorrect Answers:
A: A Data Transformation Services (DTS) package provides a set of tools that allows us to extract, transform, and consolidate data stored in a variety of formats and in different locations into single or multiple destinations supported by DTS connectivity. This solution is inappropriate, as the data exists on the server and not in numerous locations and would thus be correctly formatted for use on an instance SQL Server 2000.
B: Triggers are a special type of stored procedure that executes automatically when an UPDATE, INSERT, or DELETE statement is run against a table or view. In this scenario however, the datestamp of the data in the database must be checked and the data deleted one year after the bid has closed. This cannot be accomplished through the use of constraints or triggers.
D: Creating a view that excludes the bids that have a closing date older than one year does not address the company policy that requires that bid information be removed permanently from the database one year after the bid closes. This data will still exist in the base tables.
转载请注明原文地址:https://kaotiyun.com/show/VuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Climatechangeissupposedtounfoldslowly,overdecades.Butthatisnottrueupinthegreatwhitenorth,asthoseattending
Fewthingssay"forgetI’mhere"quitesoeloquentlyastheposeoftheshy—theavertedgaze,thehunchedshoulders,thebodypi
TheBestMediatoUseThereareplentyofoptionsavailableforspreadingnews,suchasnewspapers,radio,TV,theInternet
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
TheU.S.PostalService(USPS)continuestobleedredink.Itreportedanetlossof$5.6billionforfiscal2016,the10thst
Adealisadeal—except,apparently,whenEntergyisinvolved.Thecompany,amajorenergysupplierinNewEngland,provokedjus
Adealisadeal—except,apparently,whenEntergyisinvolved.Thecompany,amajorenergysupplierinNewEngland,provokedjus
InToday’smanagement-theoryindustry,reputation—oratleastthecorporatekind—isa"strategicasset"thatcanbe"leveraged"
在用户管理组administrators中删除lusi用户。
随机试题
WheredoesMikeLeework?
玲玲毕业后从事社会工作,在工作过程中,她遵循相关准则,运用所学的知识真诚地为服务对象提供帮助,她的工作受到同事们及服务对象的一致好评。这说明,社会工作者具有()等基本特征。
事件A,B满足AB=A,则A与B的关系为()
案例二:2009年5月,某旅行社组织了黄山5日游旅游团,安排本社导游李某作全程陪同,李某刚从大学毕业,从事导游工作时间不长,但组织能力较强,旅游知识较为丰富。在前往黄山的火车上,李某为游客介绍了沿途的风土人情及风景名胜。游客张某等2人却觉得不刺激,非要李某
()不是导游服务的发展趋势。
【材料1】1972年2月21日,美国总统理查德•尼克松乘专机抵达北京首都机场,中国国务院总理周恩来前往迎接。周恩来对尼克松说:“你的手伸过世界最辽阔的海洋来和我握手——25年没有交往了啊!”【材料2】“即使没有苏联的威胁,我们也有必要在世界上两个
A.ParentsusuallyhelpthemB.Thekidsaregoingtrick-or-treatingC.butIdon’tknowhowitiscelebratedD.Ifyougo,takemew
研究人员们发现当过度超重的人——他们的新陈代谢速度相对较低——主要通过节食减肥时,他们的新陈代谢通常没有变化。这样一来,在新的体重下,他们比其他体重正常处于那一水平的人消耗明显更少的卡路里。所以,这些刚刚瘦下来的人最终还会胖起来的,直至他们的身体重量与其新
Theauthorseemstobelievethat______.InputsasusedinthetextreferstoallofthefollowingExcept______.
Suicidehasbeenacauseof【B1】______inmastsocietiesforalongtime.The【B2】______Greeks,forexample,requiredpeoplewhowa
最新回复
(
0
)