首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
26
问题
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://kaotiyun.com/show/DuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
[A]Thefirststepinpreparingamarketingplanisthatofproducingtheinformationnecessaryfordecision-making.Usually,a
[A]Marketforglasscraftsisgrowing[B]Dependenceofcomputerdevelopmentonglass[C]Behindtheadaptabilityofglass[D]
[A]Enduringproblemssuchaswar,poverty,andviolenceultimatelyspringfromhumannature,whichnotechnologicalinnovation
Writeanessayof160-200wordsbasedonthefollowingdrawings.Inyouressay,youshould1)describethedrawingsbriefly,
Writealettertooneofyourfriends,apologizingtohim/herforyourmakinghis/hercomputerstopworking.Youshouldwrite
Directions:Inthissection,youareaskedtowriteanessaybasedonthefollowinginformation.Makecommentsandexpressy
TheUniversityNewspaperisrecruitingsomejournalists.WriteamemoonJune1,2009toallstudents,explaining1)therequirem
EricHansenwritesabouttravelasaparticipatingenthusiastratherthanamereobserver.【T1】Itgivesthesenineessays,based
In2016,manyshoppersoptedtoavoidthefreneticcrowdsanddotheirholidayshoppingfromthecomfortoftheircomputer.But
YouhavejustcomebackfromUKasamemberofaSino-Britishculturalexchangeprogram.Writeane-mailtoyourBritishcolle
随机试题
A.神识不清B.舌苔白腻C.两者均有D.两者均无(1993年第103,104题)痰迷心窍的主要症状有()
森林覆盖率是反映森林资源丰富程度的重要指标,它是森林面积与()相比的结果。()
下列表现属于肺癌副癌综合征的是
压缩天然气加气站储气设施的总容积应根据加气汽车数量、每辆汽车加气时间、母站服务的子站的个数、规模和服务半径等因素综合确定,其中,在城市建成区内,CNG加气母站储气设施的总容积不应超过()m3。
盛达公司因不能清偿到期债务且其资产不足以清偿全部债务而被某毛纺厂申请破产清算,2011年7月1日人民法院受理了该破产申请,指定了管理人。据悉:(1)甲商业银行是最大债权人,其债权为1000万元,对盛达公司的一栋办公楼享有抵押权,甲商业银行在该破产
信托当事人不包括()。
师德修养说到底,就是培养教师良好道德品质的过程,提升教师修养的过程,其最根本的途径是()。
中共中央于1935年12月17—25日召开的(),标志着党已经克服“左”倾冒险主义和关门主义,并不失时机地制定出抗日民族统一战线的新策略。
结合2013上半年钱荒时期国债和市场利率的一系列数据,回答下列问题。结合我国实际说明出现“钱荒”的原因。
Hehasbeencalledthe"missinglink."Half-man,half-beast.Heissupposedtoliveinthehighestmountainintheworld-
最新回复
(
0
)