An affidavit may be used to verify a pleading, to prove the service of a summons, notice, or other process in an action, to obtain a provisional remedy, an examination of a witness, a stay of proceedings, or upon a motion, and in any other case permitted by law.
SDCL 19-4-2