Implement IsParticipant as a stored procedure.