If the defendant recovers judgment, all the money or property held by any writ of attachment shall be delivered to him, subject to the plaintiff's rights on appeal, and he may maintain an action on the plaintiff's bond for the assessed damages sustained by reason of the writ of attachment. Upon the entry of final judgment in favor of the defendant or on satisfaction of a plaintiff's judgment, if real estate was attached, the fact of such judgment or satisfaction shall be recorded by the prevailing party with the register of deeds in any county in which attached lands are situated.
SDCL 21-17A-27