Miller, the all-time winningest goalie in Sabres history, made 30 saves to collect the victory that snapped his team's three-game losing skid.
Three times leads were erased in a wild affair.
Buffalo's Zemgus Girgensons opened the scoring with a fluky shorthanded goal. Miller stopped a sharp-angled shot, and the puck bounced out to the side of the net, from where Girgensons simply whacked at it into the netminder and it banked into the cage.
But Rickard Rakell got that one back for the Ducks with a power-play goal just 21 seconds into the second period. Rakell hit the post with his rebound attempt, but the puck bounced off the leg of Buffalo goalie Robin Lehner and into the net. Rackell is riding a five-game point streak with four goals and five assists.
Jack Eichel put the Sabres ahead again late in the second period with a man-advantage marker, converting on a nifty touch-pass by Sam Reinhart, but Ondrej Kase tied it with 38.7 seconds remaining in the frame when his backhander dribbled over the line.
Corey Perry was credited for a Sabres own goal midway through the third period after Ryan O'Reilly tried to shoot away a puck from the edge of his crease only to put it in the net. O'Reilly later made amends when he scored into the right net with 14.5 seconds remaining in regulation.
Perry has only 10 goals on the season, but has collected two goals and six points in a three-game point streak.
Lehner stopped 29 shots in the loss.
To make the night a double disappointment for Buffalo, defenseman Jake McCabe left the game after the first period. He was hit by Ducks captain Ryan Getzlaf late in the frame and didn't return.
--Field Level Media
Anaheim | Buffalo | |
Ondrej Kase 2 | Points | Jack Eichel 2 |
Ondrej Kase 1 | Goals | Jack Eichel 1 |
Ondrej Kase 1 | Assists | Sam Reinhart 2 |
Rickard Rakell 1 | Power Play Goals | Jack Eichel 1 |
N/A | Short Handed Goals | Zemgus Girgensons 1 |
Ryan Miller .909 | Save Percentage | Robin Lehner .879 |
Ryan Miller 30 | Saves | Robin Lehner 29 |
Team | Shots | Goals | Power Play | Penalty Kill | Penalty Mins | Face Offs Won |
Anaheim | 33 | 4 | 1-3 | 1-2 | 6 | 28 |
Buffalo | 33 | 3 | 1-2 | 2-3 | 8 | 36 |