Despite the loss, though, San Jose clinched a playoff spot for the 10th straight season with the point.
Joe Colborne had the only goal of regulation for the Flames, who have won five of their last seven. Ramo stopped 33 shots in the win.
Sheppard scored for the Sharks, who have dropped three of four. Stalock made 26 saves in the loss.