He graduated from Oxford University in 1802 with a Doctor of Divinity (D.D). Together with his congregation, he joined the Episcopal Church of Scotland in 1803, and was ordained bishop of Edinburgh in 1806.[2] He remained Rector of St John's and Bishop of Edinburgh congruently until his death.
Sandford died at home, 17 Melville Street[3] on 14 January 1830 at Edinburgh.[4] He is buried in the churchyard of St John's on Princes Street. The grave lies on the first terrace off Princes Street, east of the church. The marble tablet is heavily eroded.
Family
Sandford married Helen Frances Catherine Douglas, on 11 October 1790. They had seven children, including:[4]