A teenager who drove dangerously was more than three times the alcohol limit.
Police followed a car travelling at excessive speed on the A7 between Selkirk and Hawick.
It was seen weaving over the road and repeatedly mounting the verge.
Nineteen-year-old Ricky McCall, of Cherry Cottage, Hassendean, admitted driving dangerously between Dryden and Synton on April 5.
He also admitted driving with a blood/alcohol reading of 154mgms – the legal limit being 50.
Prosecuting, Graham Fraser said: “Police noted the car travelling in excess of 90mph and, as it approached the stables at Dryden, he lost control and swerved across the road several times.
“He managed to keep some control and at the bottom of Ashkirk he went round a right-hand bend on the wrong side of the road, and continued to sway around the road and mount the verges.
“They signalled for him to pull over and he was smelling strongly of alcohol.”
The prosecutor added: “His driving was dangerous and he was extremely lucky not to have crashed.”
Defence solicitor Ed Hulme told Selkirk Sheriff Court his client appreciated the severity of his crime, adding: “He had a disagreement with his partner and made a foolish decision to drive.”
Mr Hulme said McCall, who plans to move to Scarborough, was “extremely apologetic” and had acted out of character.
The teenager was fined a total of £800 – £400 for dangerous driving and £400 for drink-driving – and disqualified from driving for 16 months.”