A subpoena may command the person to whom it is directed to produce the books, papers, documents, or tangible things designated therein, regardless of whether the attorney also notices the person's deposition or commands the presence of the person to which it is directed to give testimony at a hearing or trial. Before a subpoena commanding the production of documentary evidence is served on the person to whom it is directed, a notice and copy of the subpoena must be served on each party to the matter pending. The court, upon motion made promptly and in any event at or before the time specified in the subpoena for compliance therewith, may:
SDCL 15-6-45(b)