The Giants got another solid performance from accidental starter Chad Gaudin on Sunday.

They also got a much-needed dose of momentum - in the form of a 6-2 victory over the Arizona Diamondbacks before 38,222 at Chase Field - as they prepare to embark on a particularly treacherous portion of their schedule.

Gaudin, making his second start since being plucked from the bullpen when Ryan Vogelsong went onto the disabled list, turned in six mostly strong innings and threw 84 pitches, which was plenty considering the Giants will be off for the third time in eight days on Monday. A quartet of relievers took care of the rest, and the Giants walked away with two of three in a critical weekend series with the division-leading Diamondbacks.

Had it not been for an eighth-inning bullpen collapse on Friday night, the Giants might well have taken all three. As it is, they moved to within 1 1/2 games of first place in the National League West, where they remained tied with the Colorado Rockies.

From here, though, the road gets a little bumpier.

Beginning Tuesday, the Giants will play 17 games without an off day, the first six of them on the road against playoff contenders Pittsburgh and Atlanta. They will do so without Vogelsong, without injured leadoff man Angel Pagan and, quite possibly, without reigning World Series MVP Pablo Sandoval, who could go on the DL after aggravating his troublesome left foot Saturday night.

"We have to continue this," manager Bruce Bochy said. "We still have two very good teams ahead of us."

Bochy reiterated even before the game that Gaudin is firmly in the rotation, especially now that Vogelsong has been moved to the 60-day DL and won't be back before the All-Star break. But as if to affirm his manager's confidence, the right-hander stared down not only the Diamondbacks, but also a stomach virus that struck him just before the game and led him to vomit a couple of times during the game.

"At first, I thought it was just nerves," Gaudin said after the game, by which time he felt better. "I just had to battle and get through it."

He didn't do it alone. By the time Gaudin took the mound, his teammates already had handed him a two-run lead that should have been bigger - the bases were still loaded with nobody out after Joaquin Arias' RBI single made it 2-0, but the Giants failed to score again.

Gaudin also got some help on defense, as center fielder Juan Perez, making his major-league debut, raced to catch a drive off the bat of Paul Goldschmidt on the warning track in right-center to end the first inning.

"That was a huge catch," Gaudin said. "My view was directly at it. I saw him catch the ball and hit (the wall) like a ton of bricks. That was a great catch. That's not always easy, because some guys have a fear of the wall out there."