首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
56
问题
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
微软认证
相关试题推荐
School-agechildrenshouldparticipatein60minutesormoreofmoderatetovigorousphysicalactivitydaily,accordingtoanex
[A]"Ijustdon’tknowhowtomotivatethemtodoabetterjob.We’reinabudgetcrunchandIhaveabsolutelynofinancialrewa
Writeanessayof160-200wordsbasedonthefollowingdrawings.Inyouressay,youshould1)describethedrawingsbriefly,
Writeanessayof160-200wordsbasedonthefollowingtable.Youressayshould1.describethechangesintheaveragefamilyex
Youareanactivememberofthestudentnewspaper.Thenewspaperiscurrentlylookingforajournalistforthesummersemester.
Supposeyouorderedahairdryeronlineatthecostof$22,butonlyreceivedanemptypackagebox.Somethingmustbewrong.Wri
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
MireilleGuiliano,achampagnecompanyexecutive,capturedtheattentionoffrustrateddieterswithherjoyoflifeinthe2005
LastThursday,theFrenchSenatepassedadigitalservicestax,whichwouldimposeanentirelynewtaxonlargemultinationalst
TheU.S.PostalService(USPS)continuestobleedredink.Itreportedanetlossof$5.6billionforfiscal2016,the10thst
随机试题
A.持续性发热2~3周,突然右下腹部疼痛,出现弥漫性腹膜炎B.发生于20岁左右,病史长,腹痛、腹泻,无脓血,有低热、贫血,可出现肠梗阻C.多发生于老年人,腹痛、腹胀、便秘与腹泻交替出现,可出现不全肠梗阻D.多见于儿童、青年,腥臭血便,短期可出现贫血、
A、磺胺甲噁唑B、氨茶碱C、洛匹那韦D、羟甲香豆素E、氯屈膦酸钠服后使尿量增多而易致脱水,出现口干、多尿或心悸的是
根据我国公司法的规定,下列属于公司章程相对必要记载事项的有()。
对于侦查破案、拘留逮捕、审讯、处置突发暴力事件、制裁违法犯罪等项工作,公安机关的工作对策主要是()。
如果你的上级领导有些习惯你无法忍受,你怎么办?
市场中有N个同质产品的古诺厂商。每个厂商的成本为TCi(qi),C>0,i=1,2,……N。市场需求曲线则为P=a一bQ=a一b(∑i=1Nqi),其中P为价格。参数a,b>0,a>c。证明当N趋近于无穷大时,此古诺博弈的结果趋近于完全竞争结果。
改革开放30多年来,老百姓一个突出的感受,就是市场日趋繁荣、商品极大丰富、生活蒸蒸日上。为什么会有这样巨大的变化?这与我们坚持市场取向改革、不断激发市场活力密不可分.与正确处理政府和市场关系、不断提高资源配置效率密不可分。实践表明,政府和市场的关系是经济体
求极限:
ThebirthofsuburbiaA.Thereisnosinglepivotalmomentthatcouldbeseparatedoutfromanyotherastheconceptionofth
IfyouhadtosumuptheproblemsofAmericanhealthcarintwowords,theywouldbe"cost"and"coverage".Thecountryspends1
最新回复
(
0
)