The costs of any deposition introduced, in whole or in part, into evidence at the trial by the party taking it shall be taxed as costs in the case upon the certificate of the person before whom the deposition was taken; the costs of depositions in other cases shall be taxed as costs in the case only if the court so directs.
Ala. Code § 12-21-144 (1975)