Every county clerk shall serve and execute process of every kind, and perform all other duties of the sheriff, when the sheriff shall be a party to the case, or whenever affidavits shall be made and filed as provided in section 23-1714; and in all such cases he shall exercise the same powers and proceed in the same manner as prescribed for the sheriff in the performance of similar duties.