In 1845 the Edinburgh and Dalkeith Railway was sold to the North British Railway, which had not yet opened any of its lines.
The operation of the former Edinburgh and Dalkeith Railway as a modern main line with steam traction emphasised the obsolete technology of the Duke's line, and ideas of modernisation began to take hold.