SAN DIEGO -- Jason Hammel listened to some smart advice, and it paid off in a big way.
The 6-foot-6 right-hander was urged by Colorado's coaching staff to start going inside more, and he paid attention.
"I had a sit down and was told that my M.O. around the league is the way hitters look at me," Hammel said. "Obviously, I need to be able to pitch inside more. I was able to do that effectively enough."
Colorado scored three times in the second inning and earned its 10th win in its last 13 games at Petco Park. The Rockies also have won two in a row after losing four straight.
Hammel (6-10) was charged with two runs and five hits in 6 1/3 innings. He snapped a personal two-game slide and earned just his second victory in his last seven starts.
"(Hammel) got punched there in the (third) inning," Colorado manager Jim Tracy said. "You were anxious to see how he was going to respond once that happened. What was great to see was that he punched back and gave us some more good innings."
Hammel left after losing pinch-hitter Kyle Blanks to a walk, and the Rockies used three relievers to finish the inning.
Matt Lindstrom came in and struck out Cameron Maybin before allowing a single to Orlando Hudson that moved Blanks to third. Matt Reynolds then walked Chase Headley to load the bases before Matt Belisle retired Ryan Ludwick on a popup.
"I don't think he is pressing," Padres manager Bud Black said of Ludwick, the subject of much speculation ahead of Sunday's non-waiver trade deadline. "He's taking good rips, the results aren't there. He has to get to the point where his timing is a bit more precise."
Rafael Betancourt worked the eighth and Huston Street finished for his 28th save in 30 chances. Cameron Maybin doubled with two out in the ninth, but Street got Orlando Hudson to ground out to end the game.
"The bullpen did a wonderful job," Tracy said. "We got backed into a corner there in the seventh inning and Belisle made a pitch with the slider to Ludwick."
Maybin finished with three hits and is batting .387 since the All-Star break. He has hit safely in 13 of 14 games.
Padres starter Tim Stauffer (6-8) gave up eight hits in seven innings. He hurt himself with a costly balk, the first of his career.
Stewart and Iannetta pulled off a double steal without a throw with Hammel at the plate. Before the next pitch, Stauffer was called for a balk, allowing Stewart to score.
"It was a combination of things," Stauffer said. "They hit some decent pitches, pitches I left out over the plate. But they were down and out hunting fastballs and were fortunate to get a couple of knocks there."
The Padres thwarted another Colorado run by pitching out when Hammel attempted a suicide squeeze. Catcher Luis Martinez took the pitch and fired to Headley at third base, who tagged out Iannetta.
San Diego cut the lead to 3-2 in the third. Maybin doubled, went to third on a wild pitch and scored when Hudson's infield hit bounced off the glove of a diving Tulowitzki at shortstop. Hudson then stole second and scored on Headley's single.
Hammel is 3-0 with a 2.92 ERA in four career starts at Petco Park. ... Padres LHP Clayton Richard underwent season-ending arthroscopic shoulder surgery. ... The Rockies are without a homer in five straight games, their longest streak in nearly a year. ... San Diego scratched RF Will Venable (back spasms) and SS Jason Bartlett (tight right hamstring) from the starting lineup.
Washington Nationals re-signing Josh Harrison to one-year contract
Landing in Washington as the 2020 regular season began, utility player Josh Harrison did enough to re-sign with the Nationals on a one-year contract for $1 million.
World Series 2020: 'Travel day' roundtable -- everything we learned in Games 1 and 2
The series is staying in Arlington, but the Dodgers and Rays have 24 hours to catch their breath. We answer the biggest questions so far in this Fall Classic.
The 10 greatest performers in World Series history
With the Dodgers back in the World Series, we recall the most legendary Fall Classic figures -- including both a Hollywood hero and an L.A. nemesis.
World Series 2020: How Brandon Lowe got his swing straightened out at exactly the right time
Tampa Bay's best hitter has been a mess most of the postseason, but getting in touch with his personal hitting coach changed everything.
World Series 2020: Inside Los Angeles Dodgers' failures in Game 2's big at-bats
As great as the Dodgers are, they won't end their title drought if they come up empty in high-leverage moments the way they did in Wednesday's loss to the Rays.
World Series 2020: Will Dodgers be OK if Dustin May, Tony Gonsolin don't contribute more?
Two of L.A.'s best young pitchers have struggled as their roles have shifted, which could be an issue if others don't pick up the slack.