NEW YORK — Alex Rodriguez set a major-league record with his 24th career grand slam, passing Lou Gehrig with a tiebreaking shot in the seventh inning that sent the Yankees to a 5-1 victory over the Giants on Friday night.
CC Sabathia beat Tim Lincecum in a matchup of former Cy Young Award winners.
New York won for the second time in seven games, keeping alive fading playoff hopes as it opened its final homestand of the season.
Rodriguez, the designated hitter, connected off reliever George Kontos with two outs, sending a drive to right-center. It was his 14th slam with the Yankees, snapping a tie with Joe DiMaggio for second place on the team's list.
The slam snapped a 1-for-25 slide for Rodriguez.
"I saw where I was 1-for-24, 1-for-25, whatever it was, but I thought for the most part, I was swinging the bat decently well,'' he said. "But that's baseball. One swing can turn a lot of things around."
Rodriguez's 654th career home run left him six behind Willie Mays for fourth place.
"It's a huge hit," said manager Joe Girardi, who called 24 slams "an unbelievable accomplishment."
This date in baseball
1934 — Daffy Dean of the St. Louis Cardinals pitched a no-hitter against the Brooklyn Dodgers for 3-0 victory in the second game of an Ebbets Field doubleheader. Daffy's brother Dizzy, held Brooklyn hitless until the eighth inning in the opener and won 13-0.
1947 — Boston's Johnny Pesky had two hits in each game of a doubleheader and finished the day with 202 hits. Pesky surpassed the 200-hit mark for the third time in as many major league seasons. He is the only player to lead a league in hits in his first three seasons in the game.
1964 — Manager Gene Mauch's first-place Phillies lost 1-0 to the Cincinnati Reds on Chico Ruiz's steal of home in the sixth inning. It was Philadelphia's first of 10 straight losses, a streak that cost them the NL pennant.
1970 — Oakland's Vida Blue pitched a no-hitter in his eighth major league start, beating Minnesota 6-0.
1981 — Steve Carlton struck out Andre Dawson in the third inning for the pitcher's 3,118th career strikeout, the most in the NL. But the Phillies lost to Montreal 1-0 in 17 innings.
1986 — No. 1 draft pick Jimmy Jones pitched a one-hitter in his major league debut, leading the San Diego Padres to a 5-0 victory against the Houston Astros. Jones allowed a triple in the third to opposing pitcher Bob Knepper.
1995 — Colorado's John Vander Wal set a major league record with his 26th pinch-hit of the season with a home run in the seventh inning against San Francisco.
2000 — Colorado's Jeff Cirillo doubled twice in a 13-4 win over San Diego, giving him 51 doubles for the year. Cirillo and Todd Helton (57) became the seventh pair of teammates in major league history to reach 50 doubles in the same season.
2001 — Albert Pujols hit a grand slam and doubled in a run in St. Louis' 9-5 win over Pittsburgh. The slam gave him the major league record for extra base hits by a rookie (83), one more than Johnny Frederick's total for Brooklyn in 1929.
2003 — Greg Maddux became the first pitcher in major league history to win at least 15 games in 16 consecutive seasons, leading Atlanta over Florida 8-0. Maddux (15-11) had shared the record with Cy Young. Maddux pitched five scoreless innings, allowing only one hit in his 288th career victory.
2006 — David Ortiz hit his 51st and 52nd homers, breaking the Red Sox record for most homers in a season of 50 set in 1938 by Jimmie Foxx. The homers also set the major league record by a designated hitter at 45, two more than he hit when he set the record last season.
2008 — Baseball said farewell to Yankee Stadium, the home of baseball's most famous team. What began with a Babe Ruth home run on an April afternoon in 1923 ended with Mariano Rivera retiring Brian Roberts on a grounder to first baseman Cody Ransom, completing a 7-3 victory over Baltimore.
2011 — The New York Yankees swept the Tampa Bay Rays by identical 4-2 scores in a day-night doubleheader to win the AL East. The Yankees earned their 16th playoff berth in 17 seasons by winning the day game.
Today's birthdays: Jeremy Jeffress 26; Antonio Bastardo 28; Joaquin Arias 29; Scott Rice 32.
Longest current batting streak — 9, Pedroia, Bos, September 10 to September 19; Swisher, Cle, September 10 to September 19.
Longest batting streak, season — 19, Ellsbury, Bos, June 19 to July 11.
Longest winning streak, season — 13, Scherzer, Det, April 6 to July 3.
Longest losing streak, season — 8, Humber, Hou, April 3 to May 11; Williams, LAA, June 22 to August 21.
Longest current winning streak — 1, BOS, September 19 to September 19; CLE, September 19 to September 19; DET, September 19 to September 19; K-C, September 18 to September 18; LAA, September 18 to September 18; OAK, September 19 to September 19; TEX, September 19 to September 19; TOR, September 19 to September 19.
Longest winning streak, season — 12, DET, July 26 to August 8.
Longest home-win streak, season — 11, CLE, July 11 to August 1; OAK, May 17 to June 13.
Longest road-win streak, season — 9, TEX, August 4 to August 23.
Longest losing streak, season — 10, CHW, July 26 to August 4; MIN, May 14 to May 24.
Longest home-loss streak, season — 11, K-C, May 6 to June 4.
Longest road-loss streak, season — 12, CLE, May 24 to June 10.
Longest current batting streak — 10, Revere, Phi, July 3 to July 13.
Longest batting streak, season — 29, Span, Was, August 17 to September 18.
Longest winning streak, season — 9, Corbin, Ari, April 6 to June 2.
Longest losing streak, season — 9, Marcum, NYM, April 27 to June 19.
Longest current winning streak — 3, CIN, September 16 to September 18.
Longest current home-win streak — 3, S-D, September 6 to September 8.
Longest winning streak, season — 14, ATL, July 26 to August 9.
Longest home-win streak, season — 8, ATL, July 26 to August 9; COL, April 5 to April 20; MIL, April 16 to April 30; S-D, June 10 to June 21.
Longest road-win streak, season — 15, LAD, July 7 to August 5.
Longest losing streak, season — 10, S-D, June 29 to July 8.
Longest home-loss streak, season — 8, NYM, May 10 to May 25.
Longest road-loss streak, season — 11, PHL, July 20 to August 11.