SAN FRANCISCO -- Ehire Adrianza became the latest pinch-runner in the majors to make a decisive dash.
"That was so exciting," Adrianza said. "I have been waiting for this moment since I was 3 years old. It was pretty amazing and it feels great. As a pinch-runner it was an honor to win a game like that."
Adrianza has been a minor league shortstop in the Giants' system since he was 16 in 2006.
Javier Lopez (3-2) got the win. Sanchez also drove in a run for the Giants, who split the series with Arizona.
"I just tried to put the ball in play and took advantage of the hole," Sanchez said. "I feel great right now. I'm comfortable swinging. I feel amazing."
Eric Chavez and A.J. Pollack each drove in runs for the Diamondbacks.
"We have not swung the bats very well at all, especially in the good situations," Arizona manager Kirk Gibson said. "We're not in a good streak right now."
Gibson was ejected in the 10th for arguing after first base umpire Tom Hallion reversed his original call.
The Diamondbacks had runners at first and second with two outs when Aaron Hill grounded to first baseman Buster Posey. After bobbling the ball, Posey flipped to pitcher George Kontos covering the bag.
Hallion called Hill safe, then consulted with the other umpires and ruled him out.
Giants starter Madison Bumgarner threw six shutout innings, allowing four hits. He struck out nine and did not walk a batter. Bumgarner remains winless over his last seven starts.
"It doesn't matter if I get the win or not, that's out of our control," Bumgarner said. "All the starters are trying to do is compete, eat up some innings and keep us in it."
Diamondbacks starter Wade Miley went seven innings, allowing two runs on five hits. He walked two and struck out three.
Miley retired nine of the first 10 hitters before running into trouble in the fourth.
Tony Abreu walked and Posey doubled to open the inning. One out later, Sanchez bumped a single into right field to score one run and Posey later scored on a wild pitch.
The Diamondbacks scored twice in the eighth against Santiago Casilla, Chavez hit a sacrifice fly and Pollack had an RBI single.
OF Hunter Pence needs a home run to become the first Giants player to record at least 20 home runs and 20 steals in a season since Barry Bonds in 1998. ... The Giants sold out their 237th regular season home game, doing it while the San Francisco 49ers hosting the Green Bay Packers in their regular-season opener. ... RHP Tim Lincecum (9-13, 4.50) makes the start for the Giants on Monday night when Colorado arrives to open a three-game set. He's 0-2 with an 8.00 ERA against the Rockies this year. ... The Diamondbacks will start RHP Randall Delgado (4-5, 3.69) in their series opener against the Dodgers in Los Angeles on Monday. He's allowed three earned runs or less in 12 of his 15 career starts. ... Arizona IF Martin Prado missed his second straight game with an illness. ... Diamondbacks INF Cliff Pennington returned to Arizona after the game to be with his wife, who will undergo induced labor on Monday.
Eric Thames goes full hulk mode as he rips off his shirt so Brewers fans buy the Flex 10-packs.
Indians manager Terry Francona remembers his father who died on Tuesday night at the age of 84 and shares some memories of his father in Cleveland, specifically throwing out the first pitch.
Drew Butera and Danny Duffy share their fondest memories of former teammate Eric Hosmer as he embarks on his next chapter with the Padres and credit the first baseman for the Royals' World Series victory.
Ned Yost says that there isn't anything he can tell fans about former Royal Eric Hosmer that they don't already know and explains how he found out that the first baseman wouldn't be returning to Kansas City.
As Aaron Judge and Giancarlo Stanton prepare for their first batting practice together, Yankee teammates react to how amazing it will be to watch. Buster Olney adds that having both Judge and Stanton in the same lineup will be like a daily home run derby.
Evan Longoria, who played for 10 seasons with the Rays, is disheartened by Tampa Bay's treatment of Corey Dickerson, whom the team DFA'd over the weekend: "The guy was an All-Star last year. It just doesn't make sense to me."