"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
Mariano Rivera, Roy Halladay on Hall of Fame ballot
Career saves leader Mariano Rivera and late pitcher Roy Halladay are among 20 new candidates on the Hall of Fame ballot for the Baseball Writers' Association of America, joined by 15 holdovers headed by Edgar Martinez.
Indians unveil alternate red home jerseys for 2019 season
The team unveiled a new alternate home jersey on Monday. It's a red top scripted with "Indians" on the front that Cleveland occasionally will wear for home games in 2019.
Reports: Nats agree to deal with catcher Kurt Suzuki
Catcher Kurt Suzuki is leaving the Braves to join their NL East rival, agreeing to a two-year contract, according to multiple reports.
Bryce, Manny, Corbin and more? What a Yankees spending spree could bring
The Bronx hasn't been home to a World Series champion for almost an entire decade. We offer up five offseason moves that would fix that -- if the Steinbrenners are willing to spend like The Boss.
Which teams should shift gears and become buyers or sellers?
The Diamondbacks have been contenders, but they're among the clubs who might want to shake things up by shopping stars like Paul Goldschmidt.
How the Phillies can be smart spending stupid amounts of money
The Phillies have plenty of payroll space and expectations of contention to deliver on. Here's a plan for which top free agents they should target.