"I wanted to go out there, make sure I continue with what we've been doing this whole year, continue the same game plan and just kind of go from there," Holland said. "Obviously, a win is great. To go against my former teammates and those guys, it is a little bit better -- so now I can maybe say some stuff to them."
Holland, who won 62 games over eight seasons with the Rangers after they drafted him in 2006, was mostly sharp while notching consecutive victories for the first time this season.
He yielded one run and three walks with four strikeouts, then left to a standing ovation from the San Francisco crowd.
"Just pitched a beautiful game," Giants manager Bruce Bochy said. "It's great to see players like Derek, who it looks like they may be toward the end of their career, bounce back and show that there's a lot of game left in what they have."
Four days earlier, Holland (7-8) gained national attention after making a racially insensitive joke while appearing on MLB Network alongside Giants massage therapist Haro Ogawa in a bit that was meant to be fun. Holland later apologized for his comment.
"I know I had made a mistake and I am still very sorry for what I've done," Holland said. "With the stuff that happened off the field, (the ovation) meant a lot to me. Hopefully with my apology to them they have my back and they understand those were not the intentions."
Elvis Andrus had an RBI double on his 30th birthday for Texas. The Rangers finished 2-4 on their road trip.
"Holland was throwing the ball well," manager Jeff Banister said. "He made it very challenging for our hitters, being able to pitch in and across the plate."
The Giants went ahead in the fourth.
Hunter Pence singled off Yovani Gallardo (7-3) with two outs. After Nick Hundley walked, Duggar lined a 2-2 pitch between center fielder Carlos Tocci and right fielder Nomar Mazara to put San Francisco up 3-1.
Duggar, the No. 8 hitter, was shocked the Rangers didn't walk him with the pitcher's spot due up next.
"I thought they were going to selectively pitch around me," he said.
Mark Melancon retired three batters for his third save.
WATCH HIM FLY
Bochy was asked what he thought while watching Duggar race around the bases for his first career triple. "I wish I had that speed, that's what goes through my mind," Bochy said. "It's a gift."
Rangers: Joey Gallo, who sprained his left ankle in the series opener, was back in the starting lineup after being limited to a pinch-hit appearance on Saturday.
Giants: Buster Posey was placed on the 10-day disabled list, as expected. The six-time All-Star catcher is scheduled to have season-ending hip surgery Monday in Colorado. Aramis Garcia was called up from Triple-A Sacramento.
Rangers: Face the Dodgers and RHP Walker Buehler (6-4, 2.96 ERA) on Tuesday in Texas. Buehler is 2-0 with a 1.07 ERA in his past four starts. Texas had not announced a scheduled starter.
Giants: RHP Chris Stratton (8-7, 5.37 ERA) makes his second start since being called up to replace Dereck Rodriguez in the rotation when he faces LHP Patrick Corbin (10-4, 3.17) and the Arizona Diamondbacks on Monday. Stratton leads San Francisco in wins despite two trips to the minors.
More AP MLB:�https://apnews.com/tag/MLB and�https://twitter.com/AP-Sports
Umpire tackles fan who runs on field
Umpire Jeff Nelson body slams a fan who ran on to the field in the bottom of the 9th inning.
Cruz smacks a pair of homers in Twins' blowout win
Nelson Cruz hits the ball out of the park in the 1st and 8th innings to help lead the Twins to a 16-7 win over the Orioles.
Gallo goes deep again in Rangers' 9-4 win over Astros, Cole
Joey Gallo hit another long home run, Asdrubal Cabrera accounted for five runs and the Rangers beat the Houston Astros 9-4 on Saturday night in another frustrating start for Gerrit Cole against Texas.
Rangers score 5 times in first inning
Texas Rangers come out hot and score five runs on Astros' ace Gerrit Cole.
Yelich homers twice, Brewers beat Dodgers 5-0
Christian Yelich hit two home runs, pushing his major league-leading total to 13, and Chase Anderson pitched five shutout innings in a spot start as the Milwaukee Brewers beat the Los Angeles Dodgers 5-0 Saturday.
Granderson homers, Marlins tag Scherzer in 9-3 win over Nats
Curtis Granderson homered and the Miami Marlins busted out at the plate after changing hitting coaches, roughing up ace Max Scherzer in beating the Washington Nationals 9-3 on Saturday night to win a series for the first time this season.