Looking to create a TRIGGER on INSERT of a New Row.
Is this correct? Do I need to qualify it? IntelliSense is kind of asking for a WHERE Clause...
CREATE TRIGGER [TR_rsm_emailnotification_INSERT]
ON [dbo].[rsm_emailnotification]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON
;
UPDATE [dbo].[rsm_emailnotification]
SET [SinkCreatedOn] = GETDATE (),
[SinkModifiedOn] = GETDATE (),
[rsm_notificationtype_entitytype] = 'rsm_status',
[rsm_program_entitytype] = 'po_program',
[regardingobjectid_entitytype] = 'rsm_enrollment',
[createdby_entitytype] = 'systemuser',
[modifiedby_entitytype] = 'systemuser',
[owninguser_entitytype] = 'systemuser',
[owningbusinessunit_entitytype] = 'businessunit',
[rsm_notificationstatus_entitytype] = 'rsm_status',
[ownerid_entitytype] = 'systemuser'
FROM [dbo].[rsm_emailnotification]
;
END
;
GO