The sheriff or constable shall keep the property seized by him and the proceeds of such as shall have been sold to answer any judgment which may be recovered in such action; and shall, subject to the direction of the court or judge, collect and receive into his possession all the debts, credits and effects of the defendant. The sheriff or constable may also take such legal proceedings, either in his own name or in the name of the defendant, as may be necessary for that purpose and discontinue the same at such times and on such terms as the court or judge may direct.
SDCL 21-17A-16