procedure sp_FinalDefCountList
requires a
SET NOCOUNT ON at the start
if @finalstring needs to sometimes be returned , then you need to set it up as an output parameter instead.
the initial trigger is very poorly written in that it doesn't cater for multiple updates...
>>SET @CaseID = (Select tblLinkDefendantCounts.CaseID from tblLinkDefendantCounts, INSERTED WHERE tblLinkDefendantCounts.DefendantCountsID = INSERTED.DefendantCountsID)
>>EXEC sp_UpdateDefCaseCounts @CaseID
needs to be processed in a loop.