If an action be against defendants jointly indebted upon contract, the plaintiff may proceed against the defendant served unless the court otherwise direct; and if he recover judgment, it may be entered against all the defendants thus jointly indebted so far only as that it may be enforced against the joint property of all, and the separate property of the defendants served and if they are subject to arrest, against the persons of the defendants served.
SDCL 15-8-2