Question : disallow results from triggers

I had a trigger on a table.
Declare @CaseID int
SET @CaseID = (Select tblLinkDefendantCounts.CaseID from tblLinkDefendantCounts, INSERTED WHERE
tblLinkDefendantCounts.DefendantCountsID = INSERTED.DefendantCountsID)

EXEC sp_UpdateDefCaseCounts @CaseID

It was working but know I am now getting this error.
"A trigger returned a resultset and the server option 'disallow_results_from_triggers' is true."
This is a hosted site.  Is there anyway I can get around this?

Answer : disallow results from triggers

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.
Random Solutions  
 
programming4us programming4us