38-8-1. [Order for appearance of witness and production of documents.]
Where an order has been made by the court or a judge in a foreign state, territory or country, or stipulation has been entered into, or a notice given pursuant to the practice in such state, territory or country for the taking of the deposition of a witness within this state for use in a legal proceeding or cause pending in such state, territory or country, any judge shall, upon proof of such facts, issue an order directing the witness or witnesses to attend before the judge, notary or commissioner therein named, and to testify under oath or affirmation, and to produce such books, papers and writings as may be deemed material, at a time and place certain, and upon such further day or days as the judge, notary or commissioner may appoint, but no witness shall be compelled to attend outside the judicial district in which he shall reside, or sojourn, nor unless served with a copy of such order ten days before the return day therein mentioned and is paid witness fees and mileage in the same manner as are required upon the service of a subpoena in a cause pending in the district court.