If a complaint or other pleading is served, it may, if sufficient, be used as part of or in lieu of the affidavit for a temporary restraining order or preliminary injunction, so far as applicable, but this shall not restrict such showing by affidavit as the applicant elects to make. A copy of the complaint or other pleading, if intended as part of the showing, and a copy of any affidavit, so intended, must be served with the restraining order or injunction.
SDCL 21-8-9