Which action should you take?

You are a database developer on an instance of SQL Server 2008. Your Prod database contains a WorkOrderDetail table that stores information about work being processed within your facility.
As rows are inserted into the WorkOrderDetail table, you want to gather and record information in the Status table, which is defined as follows:


If a row cannot be successfully added to the WorkOrderDetail table, three requirements must be met:
• A description of the error that occurred should be recorded in the ErrDesc column.
• The total number of work orders in progress should be recorded in the WOCount column.
• The date and time that an error occurred should be stored in the ErrDateTime column.
Which action should you take?
A. Enable Change Tracking for your Prod database.
B. Create a table-level CHECK constraint.
C. Create an INSTEAD OF INSERT trigger on the WorkOrderDetail table.
D. Create an AFTER INSERT, UPDATE trigger on the WorkOrderDetail table.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.