Sandoval led off with a double against rookie Dirk Hayhurst (0-2), the Padres' eighth pitcher. Sandoval went to third on Travis Ishikawa's single to left, and scored when Hayhurst bounced a curveball in the dirt that got away from catcher Nick Hundley.
Aaron Rowand walked on the wild pitch, and Hayhurst was replaced by Scott Patterson. The right-hander walked another to load the bases and then walked pinch hitter Rich Aurilia to force in another run.
Rookie Sergio Romo (2-1) pitched the ninth inning for the win. Brian Wilson got the last three outs for his 39th save in 44 chances.