In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!
USE [CDR_CUCM7_1_5] GO CREATE TRIGGER [dbo].[trgAfterInsert_CDR_Record] ON [dbo].[CDR] AFTER INSERT AS BEGIN DECLARE @Epoch_Date Datetime -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for trigger here SET @Epoch_Date = (SELECT i.dateTimeOrigination FROM inserted i) update [dbo].[CDR] set HumanDATETIME=dbo.fn_Epoch2HumanDate(@Epoch_Date); END