Hi there.
exec SP_HastaIcmal_AktifKaliciHastalar 25
it returns 86.
DECLARE @iAktifKaliciHastalar int
SET @iAktifKaliciHastalar = exec SP_HastaIcmal_AktifKaliciHastalar 25
that code return error.
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'exec'.