A temporary restraining order or preliminary injunction to suspend the general and ordinary business of a corporation must not be granted without due notice of the application therefor, to the proper officer of the corporation, except when the state is a party to the proceedings.
SDCL 21-8-7