Hi all -I found a good example of using Columns_Updated() and it works well in identifying which (or all) of the 49 columns were updated within the Update Trigger.I am struggling to figure out how to JOIN to the Deleted and Inserted tables to get the Old and New values.Here is the current trigger code. ALTER trigger [dbo].[tr_trigtest] on [dbo].[patient] for updateasdeclare @bit int , @field int , @char int, @oldVal varchar(100), @newVal varchar(100)select @field = 0while @field < (select max(colid) from syscolumns where id = (select id from sysobjects where name = 'patient'))begin select @field = @field + 1 select @bit = (@field - 1 )% 8 + 1 select @bit = power(2,@bit - 1) select @char = ((@field - 1) / 8) + 1 --select @char, @field, @bit -- debug code to check the bits that are tested. if substring(COLUMNS_UPDATED(),@char, 1) & @bit > 0 select @field, name as ColumnName from syscolumns where colid = @field and id = (select id from sysobjects where name = 'patient') end
thanks for any help or suggestions.