A surety has all the rights of a guarantor whether he becomes personally responsible or not.
SDCL 56-2-4