Borders (6) 19
Pens: Hore (3)
Drop goal: Warnock
Edinburgh (10) 10
Former Edinburgh players Ally Warnock and Tom McGee spoiled their old team-mates' Hogmanay celebrations with the points that won Borders the game.
Edinburgh led at half-time through a penalty, try and conversion by Brendan Laney, with Charlie Hore kicking two penalties for the home side.
Hore reduced the deficit with another penalty after the break.
Warnock put Borders in front with a late drop-goal then McGee grabbed a dramatic try in added time.
Borders looked the hungrier outfit during the opening sparring session with
scrum-half Chris Cusiter marking his return from injury with two powerful charges.
But having weathered the early storm, Edinburgh worked their way back into the
contest and edged in front midway through the half.
The Borders defence was pressured into giving away a penalty 30 metres from
the target and Brendan Laney made no mistake from the tricky angle.
The home troops hit back positively, however, with Charlie Hore confidently
banging over two penalties in quick succession.
Edinburgh went ahead before half time when Borders lost their own line-out 10 metres from the line, Laney side-stepped Warnock, then outstripped Simon Danielli to touch down, before adding the conversion himself.
Edinburgh suffered a setback six minutes after the restart when prop Allan Jacobsen was ordered to the sin bin as referee Rob Dickson ruled he had used a fist in the middle of a ruck.
Borders stepped up the pace and thought they had created a rolling-maul try,
but Dickson insisted the ball had been held up.
After a sustained spell of pressure, Hore reduced the leeway to a single point
with his third penalty.
Edinburgh's jitters were obvious as they sent the restart kick straight out of
play, handing the initiative back to the locals.
And they patiently strung together a series of phases before Warnock sent over
a pinpoint drop goal.
In the tense finale, Laney's drop-goal attempt crashed against the post and then came McGee's moment of magic which finally snuffed out his former team-mates.
Borders: Moffat, Danielli, MacRae, Hore, Walker, Warnock, Cusiter, Thomson (capt), Ford, Douglas, Blair, MacLeod, Gray, Miller, Brown.
Replacements: Kay, Cross, McGee, Stewart, Dalziel, Weston, Dickson.
Edinburgh: Lee, Joiner, Di Rollo, Boston, Southwell, Laney, Blair, Jacobsen, Hall, Smith, Kellock, Murray, Blackadder (capt), Callam, Hogg.
Replacements: Kelly, Dickinson, Pringle, Strokosch, Lawson, Godman, MacDougall.