首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Exhibit: UPDATE EzonexamConsolidated SET District = ‘Mexico’ WHERE RtvID = 45 You work as database administrator at Ezonexam.co
Exhibit: UPDATE EzonexamConsolidated SET District = ‘Mexico’ WHERE RtvID = 45 You work as database administrator at Ezonexam.co
admin
2009-05-19
33
问题
Exhibit:
UPDATE EzonexamConsolidated
SET District = ‘Mexico’
WHERE RtvID = 45
You work as database administrator at Ezonexam.com. You handle one SQL Server 2000 computer and one database.
When users run the query in the exhibit above the receive the following error message:
Server: Mrh3612, Level 16, Stats 1, Line 1
View or function ‘EzonexamConsolidated’ is not updateable because it
contains aggregates:
How should you enable the query to run?
选项
A、Create a non-normalized EzonexamConsolidated table and populate the table with data from the base tables.
B、The appropriate users should be granted UPDATE permissions on each base table.
C、To enable updates on the composite tables create an INSTEAD OF trigger on the view.
D、On each base table add a cascading update trigger.
答案
C
解析
Explanation: SQL Server 2000 uses INSTEAD OF triggers and partitioned views to enhance the class of updateable views. INSTEAD OF triggers can be created on a view in order to make a view updateable. The INSTEAD OF trigger is executed instead of the data modification statement on which the trigger is defined. This trigger allows the user to specify the set of actions that need to take place in order to process the data modification statement. Thus, if an INSTEAD OF trigger exists for a view on a given data modification statement, the corresponding view is updateable through that statement. If the view is a partitioned view, the view is updateable, subject to certain restrictions.
Incorrect Answers:
A: Creating a table that combines the composite tables that the view is based on would deny us the ability to use the view to return aggregated column values.
B: The error message is not related to permissions but to the updateable of the table.
D: Cascading referential integrity constraints makes it possible to define the actions SQL Server 2000 takes when a user attempts to delete or update a key to which existing foreign keys point. Cascading referential integrity constraints fire AFTER triggers after all of the cascading referential actions directly caused by the original DELETE or UPDATE are performed.
转载请注明原文地址:https://jikaoti.com/ti/iwO7FFFM
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
[A]Enduringproblemssuchaswar,poverty,andviolenceultimatelyspringfromhumannature,whichnotechnologicalinnovation
Thisweekandnext,governments,internationalagenciesandnongovernmentalorganizationsaregatheringinMexicoCityattheWo
Writealettertoamuseum’sstafftoaskforsomeinformationaboutahistoricalexhibition.Youshouldincludethedetailsyou
SupposeyouphonedyourfriendMaryseveraltimesyesterdaybutshedidn’tansweryourcallatall.Writeheranemailto1
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
Herearesomemanagementtoolsthatcanbeusedtohelpyouleadapurposefullife.1.UseYourResourcesWisely.Yourdecisi
MenorcaorMajorca?Itisthattimeoftheyearagain.Thebrochuresarepilingupintravelagentswhilenewspapersandmagazin
Adealisadeal—except,apparently,whenEntergyisinvolved.Thecompany,amajorenergysupplierinNewEngland,provokedjus
Notlongago,chiefexecutiveofficers(CEOS)werelandedasheroes,leadersofthebraveneweconomy.BillGatesandJackWelchw
InToday’smanagement-theoryindustry,reputation—oratleastthecorporatekind—isa"strategicasset"thatcanbe"leveraged"
随机试题
对类风湿性关节炎描述正确的是()
患者,男性,40岁,发病后认为同事倒土豆是要他滚蛋,别人谈摇头电风扇是说他立场不稳。此患者的症状属于()。
关于票据追索权行使期限的法律适用,我国票据法规定适用:
当事人在合同的订立过程中( ),应承担缔约过失责任。
某中外合作经营企业为履行产品出口合同,于2004年2月进口自用设备一批,该设备符合《当前国家重点鼓励发展的产业、产品和技术目录》的国内投资的基建或计改项目,该批设备为投资总额内的自用设备,属于自动进口许可证范围的商品,于2006年2月合同期满,加工成品全部
计算机网络技术是计算机技术和通信技术结合在一起的技术。()
下列软件中,不属于数据库管理系统的是()。
早晨8点多钟,有两辆汽车先后离开化肥厂,向幸福村开去。两辆汽车的速度都是每小时60千米。8点32分的时候,第一辆汽车离开化肥厂的距离是第二辆汽车的三倍,到了8点39分的时候,第一辆汽车离开化肥厂的距离是第二辆汽车的二倍,那么,第一辆汽车是8点几分离开化肥厂
有着悠久历史的肯尼亚国家自然公园以野生动物在其中自由出没而著称。在这个公园中,已经有10多年没有出现灰狼了。最近,公园的董事会决定引进灰狼。董事会认为,灰狼不会对游客造成危害,因为灰狼的习性是避免与人接触的;灰狼也不会对公园中的其他野生动物造成危害,因为公
2013年1月18日上午,中共中央、国务院在人民大会堂隆重举行国家科学技术奖励大会,首次将国家最高科学技术奖授予军工装备专家。这位专家是
最新回复
(
0
)