(a) In imposing a sentence, the court shall determine under what conditions a sentence will be served as provided by law. A defendant may be sentenced to the department of correction unless prohibited by § 40-35-104(b).
(b) A court may also order probation where a defendant is eligible by law either:
(1) Immediately upon sentencing;
(2) In conjunction with a specific period of confinement pursuant to § 40-35-306; or
(3) In conjunction with a period of periodic confinement pursuant to § 40-35-307.
(c) Unless the defendant receives a sentence in the department, the court shall retain full jurisdiction over the manner of the defendant's sentence service.
(d)
(1) Notwithstanding subsection (c), the court shall retain full jurisdiction over a defendant sentenced to the department during the time the defendant is being housed in a local jail or workhouse awaiting transfer to the department. The jurisdiction shall continue until the defendant is actually transferred to the physical custody of the department.
(2) The sheriff shall promptly transfer any inmate sentenced to the department of correction who is being housed in the sheriff's local jail awaiting transfer when called upon to do so by a department of correction official. The department shall notify the sheriff in writing of the date the department intends to take custody of the inmate for transfer to the department. The notice shall be given as soon as practicable before the transfer date. Failure to do so shall result in the state withholding any housing reimbursement allowance that might otherwise be due the county for housing the inmate for any day or portion of a day that the sheriff fails or refuses to transfer custody of the inmate to the department after being requested in writing to do so. The department shall notify each sheriff of the provisions of this subdivision (d)(2) and the consequences for failing to comply with it.