SAN JOSE — Tyler Toffoli scored the game-winning goal with 8:58 left in regulation time, and the San Jose Sharks beat the Kings 4-2 on Tuesday for their second straight victory after starting the season with nine consecutive losses.

Toffoli took a pass from Jake Walman and beat Kings goalie David Rittich from in close for his sixth goal of the season, as the Sharks won their first game at SAP Center.

Fabian Zetterlund, William Eklund and Walman also scored for San Jose, which was coming off a dramatic 5-4 overtime win over the Utah Hockey Club on Monday in Salt Lake City.

Walman had three points against Utah and had three more against the Kings.

Goalie Vitek Vanecek made 26 saves, including 17 in the second period for the Sharks, who continue their homestand Thursday against Connor Bedard and the Chicago Blackhawks.

The game marked the NHL debut of Sharks forward Ethan Cardwell, who was recalled from the San Jose Barracuda.