Whenever a habeas corpus shall be issued to bring the body of any prisoner committed as aforesaid, unless the court or judge issuing the same shall deem it wholly unnecessary and useless, the court or judge shall issue a subpoena to the sheriff of the county where such person shall be confined, commanding him to summon the witness or witnesses therein named to appear before such judge or court, at the time and place when and where such habeas corpus shall be returnable. It shall be the duty of such sheriff to serve the subpoena, if possible, in time to enable such witness or witnesses to attend.
Neb. Rev. Stat. §§ 29-2803