San Jose appeared to be cruising towards victory when goals from Logan Couture and Joe Pavelski put them two up, but Sam Gagner and Taylor Hall replied to take the game into overtime.
Michal Handzus and Dan Boyle then did the business in the shootout, with Antti Niemi making two saves as the Sharks stretched their streak to seven.
Thomas Vanek had a hat-trick and two assists as the Buffalo Sabres rallied from 3-1 down to beat Boston 7-4, handing the Bruins their first defeat in regulation this season.
Vanek opened the scoring in the second minute of the second period but Rich Peverley levelled and two goals from Brad Marchand put the Bruins in control before Vanek and Tyler Ennis scored to square things up going into the third.
David Krejci put Boston ahead again before the Sabres scored four unanswered goals through Alexander Sulzer, Cody Hodgson, Vanek and Jason Pominville.
Brad Boyes scored in overtime for for the New York Islanders as they beat the New Jersey Devils 5-4.
John Tavaras scored twice for the Islanders, while Keith Aucoin and Mark Streit had a goal apiece.
The Devils, who got goals from Adam Henrique, Steve Bernier, Ryan Carter and Henrik Tallinder, slipped to their third straight overtime loss after opening the season with three wins.
Sergei Kostitsyn scored in the eighth round of the shootout as the Nashville Predators beat the Los Angeles Kings 2-1.
Evgeni Malkin, James Neal and Simon Despres scored to give the New York Rangers a 3-0 win over the Pittsburgh Penguins.
The St Louis Blues stretched their winning streak to four with a 4-1 win over the Columbus Blue Jackets.
Nikolai Kulemin and Matt Frattin scored in the third period as the Toronto Maple Leafs came from behind to beat the Washington Capitals 3-2.
The Florida Panthers overcame the Winnipeg Jets 6-3 and the Colorado Avalanche saw off the Calgary Flames by the same scoreline.