Whenever on the calling or during the trial of a civil case in any court it appears to the court that it is necessary to have a witness from a county or city other than that of trial, the summons, rule, or attachment issued for such witness from the trial court may, when the court so orders, be executed by its officers in any county or city of the Commonwealth, for which services the officer shall be allowed a reasonable compensation by the court.
Va. Code § 8.01-409