Declare @TargetCriteriaInternalNo int
DECLARE tmpCursor Cursor Local For
select TargetCriteriaInternalNo From TargetCriteria Where StartDate >= 'Jan 1, 2025' and TargetInternalno in (5,6,7) 
Open tmpCursor
Fetch tmpCursor into @TargetCriteriaInternalNo
While (@@FETCH_STATUS = 0) Begin
  Execute spdTarget @TargetCriteriaInternalNo = @TargetCriteriaInternalNo
  Fetch tmpCursor into @TargetCriteriaInternalNo
end

close tmpCursor
deallocate tmpCursor
