Microsoft
70-451 · Question #146
You are a database developer. You plan to design a database solution by using SQL Server 2008. A database contains a view that has the following features: - It contains a WHERE clause that filters…
The correct answer is C. Alter the view by adding the WITH CHECK OPTION clause. See the full explanation below for the reasoning.
Question
You are a database developer. You plan to design a database solution by using SQL Server 2008. A database contains a view that has the following features:
- It contains a WHERE clause that filters specific records.
- It allows data updates.
- You need to prevent data modifications that do not conform to the
WHERE clause. You want to achieve this goal by using minimum effort. What should you do?
Options
- ACreate an INSTEAD OF trigger on the view.
- BCreate a unique clustered index on the view.
- CAlter the view by adding the WITH CHECK OPTION clause.
- DAlter the view by adding the WITH SCHEMABINDING clause.
How the community answered
(37 responses)- A16% (6)
- B8% (3)
- C73% (27)
- D3% (1)
Community Discussion
No community discussion yet for this question.