The Warriors survived a second-half fightback from the Borders to maintain their challenge for the Celtic League.
Warriors (19) 29
Tries: N Jenkins, R Mustoe
Cons: Jenkins (2)
Pens: Jenkins (5)
Borders (3) 24
Tries: S Scott, G Morton, T Walker
Cons: T Vili (2), C MacRae
Pens: G Morton
Neil Jenkins was the star man with 24 points, including a first-half try.
The game was overshadowed by a neck injury to Borders full-back Cammie Murray who was stretchered off the field after a 12-minute injury delay.
The visitors gathered themselves in that period and late tries from Gareth Morton and Tony Walker meant they salvaged a bonus point.
Dafydd James crossed the line within the first minute after a fine Jon Bryant break, but the try was ruled out because of
a forward pass.
The Warriors allowed Jenkins' boot to ease them into control, three penalties following before Morton replied with one
for the Borders.
With 26 minutes gone a James break down the right wing was supported by Jenkins, who went under the posts for the game's
The Scottish side then suffered a double blow on the stroke of half time, first when Kevin Utterson was denied what looked a
good try, referee David Keane ruling that he had been held up by Sililo Martens.
Jon Bryant blasts through the Borders defence
The Warriors fired back, and when Borders captain Semo Sititi killed the ball on the floor he was sin-binned, Jenkins'
resultant penalty making it 16-3 at the break.
Richard Mustoe broke through the brittle Borders defence early in the second half to score the Warriors' second try and apparently seal the game.
But slack defence from a line-out saw the visitors' hooker Stevie Scott crash through for the Scots' first try.
Soon after came the worrying Murray incident as the player failed to rise from the floor.
After the long delay, Morton caught the visitors cold to cross for a simple try.
With 87 minutes showing on the clock, a superb Tanner Vili kick and gather was rewarded when the Tongan fed supporting flanker Walker for the final try of the night.
Calum MacRae's excellent conversion closed the gap to two points, but it was left to Jenkins to round off the scoring with his fifth penalty.
Warriors: G Wyatt; R Mustoe, S James, J Bryant (capt), D James; N Jenkins, S Martens; C Loader, M Rees, C Horsman, N Kelly, D Jones, M Molitika, C Harris, R Parks.
Replacements: C Balshen, M Jones, Powell, R Jones, P John, Carter, A Havili.
Borders: Cammie Murray; Nikki Walker, Gareth Morton, Kevin Utterson, Craig Moir; Tanner Vili, Iain Fairley; Craig Dunlea, Stevie Scott, Geoff Cross, Scott MacLeod, Colin Stewart, Tony Walker, Dan Kane, Semo Sititi.
Replacements: Ross Ford, Kelvin Todd, Alastair Davidson, Kelly Brown, Gary Armstrong, Clark Laidlaw, Calum MacRae.
Referee: David Keane (Ireland)