If I were creating a trigger such as: CREATE TRIGGER SOMEAUDITON DATBASENAME.DBO.SOMETABLEAFTER UPDATE,INSERT,DELETEAS SET NOCOUNT ON BEGIN Insert DifferentDatabase.Dbo.SomeOtherTable field1, field2, field3, .... SELECT DIFFERENTDATABASE.DBO.FIELDA, DIFFERENTDATABASE.DBO.FIELDB DIFFERENTDATABASE.DBO.FIELDC FROM Inserted INNER JOIN SOME3RDTABLE ON Inserted.field1 = SOME3RDTABLE.B INNER JOIN SOME4THTABLE ON SOME3RDTABLE.C = SOME4THTABLE.D WHERE SOME3RDTABLE.Z = 'bleh' END
Does it matter how long the insert and select sections are if the Inner Joins and Where statement return no records anyway?