The person to whom the subpoena is directed may, within ten days after the service thereof or on or before the time specified in the subpoena for compliance if such time is less than ten days after service, serve upon the attorney designated in the subpoena written objection to inspection or copying of any or all of the designated materials. If objection is made, the party serving the subpoena shall not be entitled to inspect and copy the materials except pursuant to an order of the court from which the subpoena was issued. The party serving the subpoena may, if objection has been made, move upon notice to the deponent for an order at any time before or during the taking of the deposition.
SDCL 15-6-45(d)