I'm currently using Microsoft Sync Framework and everything is working fine except the SQL triggers which don't appear to fire sometimes. Here is the trigger code generated by the framework. It works 90% of the time but occasionally the CreationDate is NULL after an insert. Could there be some date issue that I'm overlooking?
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[MyTable_InsertTrigger]
ON [dbo].[MyTable]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON
UPDATE [dbo].[MyTable]
SET [CreationDate] = GETUTCDATE()
FROM inserted
WHERE inserted.[DataDate] = [dbo].[MyTable].[DataDate]
END;