SAN DIEGO (AP) -- Rookie Yonder Alonso singled in the winning run in the ninth to cap a wild offensive affair, leading the San Diego Padres to a 12-11 win over the Colorado Rockies on Sunday.
Colorado scored six times in the eighth to tie the game on rookie Josh Rutledge's grand slam.
In the ninth, Everth Cabrera reached on a one-out infield single against Matt Belisle (3-7). With two outs, Belisle balked Cabrera to second and then intentionally walked Chase Headley to bring up Alonso.
The left-hander lined a ball right at left fielder Andrew Brown, whose throw was slightly late to the plate as Cabrera slid in with the winning run.
Joe Thatcher (1-4), who came on to strike out final two batters with runners on first and second in the ninth, picked up the win.
The clubs combined for 23 runs on 27 hits.
The Padres won for the 19th time in 25 games. San Diego won its sixth straight home series and has gone 23-7 at Petco Park since right after the All-Star break.
Trailing 11-5 after San Diego scored eight runs in the fifth inning, the Rockies used their own big inning against three rookie relievers to get back in the game.
After Cory Burns started the eighth and allowed a run on two hits and an error, Tommy Layne came in and hit Charlie Blackmon with a pitch to load the bases.
Layne then walked Dexter Fowler to force in another run before being replaced by Nick Vincent. Rutledge hit Vincent's first pitch into the left-field stands to tie the game at 11.
John Baker's two-run single with two outs off Rockies reliever Adam Ottavino in the fifth tied the score at 5. Pinch-hitter Andy Parrino followed with an RBI single to put San Diego ahead.
Cabrera, who had three RBIs, lined a two-run double into the right-field corner. He then stole third base and scored on catcher Jordan Pacheco's throwing error.
After Logan Forsythe's infield single brought on reliever Matt Reynolds, Headley hit a two-run homer to left to cap the inning.
Headley extended his career highs with his 28th homer and 104 RBIs, tops in the NL. Headley leads all the majors with 20 home runs and 62 RBIs since the All-Star break.
NOTES: Rockies manager Jim Tracy said if LHP Jorge De La Rosa checks out medically, he would start at least once in the final 17 games. De La Rosa, who made his third rehab start on Saturday night, hasn't pitched in the majors since he underwent Tommy John surgery in June 2011. .. Padres manager Bud Black said there is no timetable for when LF Carlos Quentin (sore right knee) might return to the starting lineup. Quentin has missed five start starts. .. Rockies RHP Jhoulys Chacin (2-5, 4.86) opposes Giants LHP Madison Bumgarner (14-10, 3.32) in the opener of a three-game series on Monday night. .. After a day off, Padres LHP Eric Stults (6-2, 2.54) will face Diamondbacks RHP Ian Kennedy (13-11, 4.21) in the first of three at Arizona on Tuesday night.