Course Solutions Uncategorized (Solved) : Details Purpose Assignment Alter Apply Trigger Code Apply Trigger Code Provided Column Per Q30652322 . . . .

(Solved) : Details Purpose Assignment Alter Apply Trigger Code Apply Trigger Code Provided Column Per Q30652322 . . . .

 

Details:

The purpose of this assignment is to alter and apply the triggercode.

Apply the trigger code provided below to each column of the”Person.Person” table to track the number of modifications of datafor each column in the table.

Trigger Code:

CREATE TRIGGER [TRIGGER_ALTER_COUNT] ON[dbo].[tblTriggerExample]

FOR INSERT, UPDATE

AS

BEGIN

DECLARE @TransID VARCHAR(36)

SELECT @TransID = TransactionID FROM INSERTED

UPDATE [dbo].[tblTriggerExample] SET AlterCount = AlterCount +1

         ,LastUpdate = GETDATE()

    WHERE TransactionID = @TransID

END

Compile the Word document with the alter trigger code, resulttable, and a screenshot of the fired trigger results

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

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

Related Post