An injury-time penalty from fly-half Harry Leonard snatched a 16-13 win for Edinburgh over the Dragons at Murrayfield.
The Dragons had been in confident mood having beaten last season's finalists Ulster last weekend. Edinburgh meanwhile, had hoped that home soil may prove lucky after their opening day defeat at Munster.
It was the visitors who scored first, with the boot of Jason Tovey earning three points early on, though Leonard equalised soon after.
Both sides missed penalty chances during the early period of play, but the Edinburgh pack soon led the way for a second Leonard penalty.
Tim Visser's return to the side saw the winger power over in the corner for the first try of the night after 47 minutes, after being put through by David Denton, and with Leonard adding the conversion from the touchline, the home side were 13-3 up.
Richie Rees went over after nipping round a ruck, and with Tovey's conversion, the Dragons were only three behind.
Italian international Kris Burton, who had earlier replaced Tovey, kicked the Dragons level with only five minutes to play, but it was Leonard who proved the match-winner with a long-distance kick with the last play of the game.
Pens: Leonard 3
Pens: Tovey, Burton
Edinburgh: 15 Greig Tonks, 14 Nikki Walker, 13 Dougie Fife, 12 Nick De Luca, 11 Tim Visser, 10 Harry Leonard, 9 Sean Kennedy, 8 David Denton, 7 Roddy Grant, 6 Dimitri Basilaia, 5 Izak van der Westhuizen, 4 Grant Gilchrist, 3 Willem Nel, 2 Ross Ford (c), 1 Alasdair Dickinson.
Replacements 16 Aleki Luitui, 17 Wicus Blaauw, 18 Geoff Cross, 19 Sean Cox, 20 Hamish Watson, 21 Sam Hidalgo-Clyne, 22 Michael Tait, 23 Jack Cuthbert.
Dragons 15 Dan Evans, 14 Matthew Pewtner, 13 Pat Leach, 12 Jack Dixon, 11 Hallam Amos, 10 Jason Tovey, 9 Richie Rees, 8 Netani Talei, 7 Nic Cudd, 6 Lewis Evans, 5 Matthew Screech, 4 Dan Way, 3 Adam Jones, 2 T.Rhys Thomas (c), 1 Owen Evans.
Replacements: 16 Hugh Gustafson, 17 Phil Price, 18 Francisco Chaparro, 19 Rob Sidoli, 20 Toby Faletau, 21 Jonathan Evans, 22 Kris Burton, 23 Ross Wardle.
Referee: Dudley Phillips (Ireland)
Assistant referees: David Changleng (Scotland), Stephen Ward (Scotland)