Hi all I have a trigger on a table that basically stores some SP text and additional information in fields in another table. All works fine except for every correct entry it also adds a null record.Any ideas?heres the trigger in questionAlter TRIGGER ttr on [TH]FOR UPDATE,INSERTAS BEGIN IF update (BH)BEGIN DECLARE @SQL VARCHAR (100)select @SQL = 'spX_T @TID='''+ convert(varchar(20),i.tid) + ''''from inserted i INSERT Td..MQueue(DatabaseName, DateCalled, StoredProcedure) VALUES(DB_NAME(),GETDATE(),@SQL) ENDEND
Cheers OMB