LOS ANGELES -- Before Sunday's game against the Los Angeles Dodgers, Pablo Sandoval was batting .173 and had not driven in a run since April 16. The San Francisco Giants third baseman ended that drought with his most productive game of the season.

Sandoval went 3-for-5 with a double and drove in two runs during the Giants' 7-4, 10-inning victory over the Los Angeles Dodgers.

The veteran began his day by hitting a first-inning drive to left-center field. Dodgers center fielder Matt Kemp tried to make a diving catch, but the ball landed just out of reach, and Giants center fielder Angel Pagan scored on the double.

In the seventh, Sandoval lined a single into left field and came home on second baseman Brandon Hicks two-run homer. Then in the 10th, Sandoval broke a 4-4 tie by hitting a ground ball underneath the glove of diving third baseman Justin Turner to bring home Pagan.

"He's been making better contact," Giants manager Bruce Bochy said. "He's got his confidence going."

Bochy had enough confidence in Sandoval to make him the cleanup hitter Sunday.

"He was pretty excited where he was hitting today," Bochy said. "He asked me how much I had to drink (Saturday) night."

Bochy now hopes Sandoval can build on Sunday's performance.

"He's got a little bit of a swagger right now, and he's got to keep that," Bochy said. "I know it's frustrating for him, but it's going to come."