A prosecuting attorney may issue subpoenas, subscribed by him, for witnesses within the state, in support of a prosecution, or for such witnesses as a grand jury may direct. An attorney for a defendant may issue subpoenas subscribed by him for witnesses the defendant may require.
SDCL 23A-14-2