Are Sql Triggers synchronous or asynchronous?
I have a table that has an insert trigger on it. If I insert in 6000 records into this table in one insert statement from a stored procedure, will the stored procedure return before the insert trigger completes? Just to make sure that I'm thinking correctly, the trigger should only be called (i know 'called' isn't the right word) once because there was only 1 insert statement, right? My main question is: will the sproc finish even if the trigger hasn't completed? Your insert trigger will run once for the entire insert statement. This is why it is important to use the inserted temporary table