Andrew Cashner allowed two runs over seven innings and Logan Forsythe Jedd Gyorko and Will Venable hit solo homers Friday night as the Padres defeated the Yankees 7-2 before a sellout crowd of 44124 at Petco Park.

Cashner beat the Yankees with his arm legs and glove.

The right-hander held New York to seven hits and no walks scored from first on an Everth Cabrera triple and made two excellent defensive plays as the Padres defeated the Yankees in New York’s first game ever at Petco Park and their first game in San Diego since the 2002 season.

Forsythe snapped a 2-2 tie in the bottom of the fourth with his fourth homer of the season on a full-count breaking ball from Yankees starter CC Sabathia. The drive landed in the second row of seats in left.

The Padres made it 4-2 later in the inning when Cashner singled to the right side (Sabathia failed to cover first) and scored on Everth Cabrera’s triple to left-center – one of four hits by the beleaguered shortstop.

"That was huge putting the ball in play; I think Sabathia was late covering" Cashner said after the Padres' 10th win in their last 15 games.

"Late in the game that was the difference maker" Cashner continued.

The game marked the end of lengthy homer droughts by Forsythe and Gyorko who connected in the seventh off Joba Chamberlain.

Forsythe’s homer was his first since June 28 – a streak of 60 homerless at-bats. Forsythe had only one extra-base hit in July while going 5-for-49.

Gyorko’s homer was his first since June 7 – a streak of 68 homerless at-bats. Gyorko was 5-for-50 in July with no extra-base hits.

Venable hit his homer deep into the seats in right in the bottom of the eighth. Venable’s 13th homer of the season equaled his career high.

Cashner allowed only three hits over his final five innings and retired nine straight Yankees after Eduardo Nunez’s double in the second.

"I don't want to say Cashner was effectively wild but he had the fastball dancing around a bit" said Padres manager Bud Black. "His changeup hadn't been that good in his last three or four games leading up to this game but tonight I felt the change-up was really good."

"The change-up is the pitch I've been struggling with" said Cashner. "I have been leaving it up way too much. There is still a lot of room for improvement on the fastball and slider but I think I located well and the defense played really well behind me. I threw strikes (64 in 97 pitches) and they put it in play."

Luke Gregerson and Tim Stauffer followed Cashner with perfect innings as Padres pitchers retired 16 of the last 18 Yankees they faced.

The Padres scored twice in the bottom of the first off Sabathia.

Cabrera and Chris Denorfia opened the game with consecutive opposite-field singles to right. After Chase Headley grounded into a forceout Sabathia issued back-to-back walks to Jesus Guzman and Yonder Alonso to walk in a run for the first time since May 20 2012.