SAN JOSE -- Joonas Donskoi scored in the sixth round of a shootout to lift the San Jose Sharks to a 2-1 victory against the Anaheim Ducks at SAP Center on Saturday.
Joe Pavelski also scored in the shootout for San Jose, and Martin Jones stopped five of six shots. Rickard Rakell scored in the shootout for Anaheim.
Donskoi faked left, brought the puck back to his right and beat Ryan Miller with a wrist shot from close range.
[WATCH: All Ducks vs. Sharks highlights]
"That was great," Sharks coach Peter DeBoer said. "He's playing with confidence. He looks like the player we had here two years ago, which is a good sign because we need that."
Joel Ward scored, and Jones made 25 saves for the Sharks (8-5-0), who won their season-high fourth straight game.
Corey Perry scored, and Ryan Miller made 44 saves in his second start of the season for the Ducks (6-6-2), who lost their third in a row.
Video: ANA@SJS: Perry buries a breakaway goal in 900th game
"He gave us a chance," said Ducks coach Randy Carlyle, who coached his 800th NHL game. "That's all you can ask of your goaltender. He was outstanding in the net for us, got us to a shootout. We lost the shootout, but we got a point off a back-to-back."
The Ducks were coming off a 5-3 loss to the Nashville Predators at Honda Center on Friday.
Ward tied it 1-1 with 8:03 remaining in the third period with his second goal of the season, putting forward Barclay Goodrow's rebound into a wide-open net to cap a 2-on-1 rush. Goodrow played his second game of the season and centered a line for the first time since he was in minor hockey.
"I'll do whatever it takes to get in the lineup," Goodrow said. "We're pretty interchangeable once we're in our own zone."
Ward, a fourth-line forward, has two goals in his past three games.
"I felt like me and [Goodrow] spent some time together so we gained some chemistry a little bit in practices," Ward said. "It's always good to contribute and help your team in a positive way. It was a good feeling to get one, and get the boys going a little bit and give ourselves a chance."
Video: ANA@SJS: Jones stones Montour to win shootout
The Sharks outshot Anaheim 41-26 in regulation and 4-0 in overtime.
Ducks forward Andrew Cogliano played his 800th consecutive game, the fourth-longest streak in NHL history, behind Doug Jarvis (964), Garry Unger (914) and Steve Larmer (884). Cogliano's streak began on Oct. 4, 2007, in his NHL debut with the Edmonton Oilers against San Jose.
Perry, who played his 900th NHL game, scored on a breakaway at 6:23 of the first period to give Anaheim a 1-0 lead. He took a stretch pass from Derek Grant and beat Jones through the 5-hole for his third goal of the season and first since scoring twice in Anaheim's season opener.
"They really like to come at you in the first five or 10 minutes and get some momentum," Carlyle said. "I thought we did a good job breaking up their momentum in the first period. Scoring the first [goal] quieted the crowd. It was a good response from [Friday] night."
Miller stopped 12 shots in the first period and 17 in the second. In one flurry just over eight minutes into the second, he stopped Justin Braun's slap shot from the high slot, Chris Tierney's attempt from close range on the rebound and another Braun slap shot.
Video: ANA@SJS: Miller shuts the door with pad, glove
But Jones was perfect after allowing Perry's goal.
"We should have had a two-goal lead, but Jones made a difference," Miller said.
Goal of the game
Donskoi's shootout goal in the sixth round.
Video: ANA@SJS: Donskoi dangles for sweet shootout goal
Save of the game
Miller stopped Tomas Hertl's backhand from close range with 3 seconds left in the third period.
Video: AAN@SJS: Miller uses his head to stop Hertl
Highlight of the game
Ward's goal at 11:57 of the third period.
Video: ANA@SJS: Ward punches in a rebound for a SHG
They said it
"They got a fortuitous bounce. It hit the corner of the rink and came back into the middle and it was a play we actually had designed, normally that's the right play and they got a 2-on-1 out of it. We could have played the 2-on-1 better." -- Ducks coach Randy Carlyle on San Jose's game-tying goal
"I thought we played really well tonight. If you look at the really high-quality scoring chances I think you can count them on one hand for the ones we gave up. It was a really solid game for us. We could have run away with that one if [Ryan] Miller doesn't play the way he does." -- Sharks goalie Martin Jones
Need to know
The Ducks were without Ryan Getzlaf (face), Cam Fowler (knee), Ryan Kesler (hip) and Patrick Eaves (illness). ... Sharks defenseman Marc-Edouard Vlasic (head) sat out. He was replaced by Dylan DeMelo.
Ducks: Host the Los Angeles Kings on Tuesday (10 p.m. ET; NBCSN, NHL.TV)
Sharks: Host the Tampa Bay Lightning on Wednesday (10:30 p.m. ET; NBCSN, NHL.TV)
Video: Jones, Ward lead Sharks to 2-1 shootout victory