Prince Fielder hit a three-run homer in the seventh to help Sabathia's cause, then Mike Cameron added a three-run shot in the ninth.
Sabathia (3-0), pitching in his native Northern California for the first time since the Brewers acquired him in a trade with Cleveland, retired 17 straight batters until Lewis reached on an error to start the seventh. Aaron Rowand homered leading off the eighth for the second hit off Sabathia to end the shutout bid.
Sabathia struck out 10 and didn't walk a batter in the 110-pitch effort.
He doubled in the third, his third hit in 10 at-bats this season. All are extra-base hits, including two home runs. He scored his team's first run on J.J. Hardy's RBI groundout. Hardy doubled in a run in the seventh.
Sabathia outpitched Matt Cain (5-8) to improve to 2-4 on the road this season. Sabathia, the burly left-hander from nearby Vallejo, won in the Giants' waterfront ballpark in June 2005.
Giants manager Bruce Bochy was ejected for arguing a call during the fifth inning. He came out of the dugout to complain after home plate umpire Jim Wolf ruled Ryan Braun safe at third after a triple to left-center. San Francisco third baseman Jose Castillo took the relay throw from shortstop Omar Vizquel and appeared to tag Braun, but Wolf
- covering third when crew chief Ed Montague ran to the outfield to watch the hit
- called Braun safe.
Bochy and Braun engaged in a brief discussion and the Giants' manager turned and began walking back to the dugout when he was tossed. Bochy then came back out to argue further. It marked the fourth time this season and the 37th time in his managerial career that Bochy has been ejected.
Cain saw his winless stretch reach three starts with his second straight loss, and the Giants' major league-worst home record fell to 17-29. They have just four victories in their last 16 home games.