The writ of injunction, as a provisional remedy, is abolished, and temporary restraining orders and preliminary injunctions by order are substituted therefor. A temporary restraining order or a preliminary injunction is obtained by order of the court.
SDCL 21-8-3