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.
James Paxton, Boston Red Sox agree to 1-year, $10 million deal, sources say
Left-hander James Paxton and the Red Sox are in agreement on a one-year, $10 million contract with a two-year club option, sources said.
Raisel Iglesias, Los Angeles Angels agree to four-year deal, source says
Closer Raisel Iglesias and the Angels have agreed to a four-year contract, a source told ESPN's Jeff Passan.
Major League Baseball, players union no closer to deal with collective bargaining agreement set to expire, sources say
Major League Baseball and the players union are no closer to a new collective bargaining agreement with the expiration of the current one looming, sources said.
Baltimore Orioles reach 1-year deal with veteran 2B Rougned Odor
The Baltimore Orioles have agreed to a one-year deal with second baseman Rougned Odor.
Gio Urshela reaches $6.55M deal with New York Yankees; Domingo German agrees to $1.75M
Infielder Gio Urshela agreed to a $6.55 million, one-year contract with the Yankees on Tuesday, while starting pitcher Domingo German agreed to $1.75 million and pitcher Lucas Luetge to $905,000.
Miami Marlins acquire Joey Wendle, send Kameron Misner to Tampa Bay Rays
The Marlins have acquired third baseman Joey Wendle from the Rays for prospect Kameron Misner.