SAN ANTONIO -- Tim Duncan had 23 points and 14 rebounds and the San Antonio Spurs escaped with a 100-99 win over Denver on Wednesday night when Nuggets veteran guard Andre Miller missed a short jumper at the buzzer.

Danny Green added 20 points and Tony Parker had 18 points and 11 assists for the Spurs, who remained 1 1/2 games ahead of Oklahoma City in the race for the top spot in the Western Conference. Kawhi Leonard chipped in with 11 points and Tiago Splitter had 10.

JaVale McGee had 21 points and 11 rebounds, Wilson Chandler scored 15 points and Miller 14 for the Nuggets, whose reserves outscored their Spurs counterparts 59-18. Kenneth Faried and Danilo Gallinari added 12 points apiece and Andre Igoudala had 10.

The Spurs (54-17) pulled within two games of Miami (56-15) in the loss column for the league's best record. The Heat lost 101-97 at Chicago, snapping their 27-game winning streak.

San Antonio escaped with its sixth straight home victory in a game that had 20 lead changes.

Duncan missed a 15-foot jumper with 10.2 seconds left, setting up Miller's driving attempt that bounced off the back of the rim as the buzzer sounded.

Parker sprained his right middle finger late in the third quarter, but returned to score four points in the fourth.

Continuing the momentum they captured late in the first half, the Spurs outscored Denver 32-21 during a third quarter in which they shot 3 for 3 from 3-point range. The Nuggets failed to score any fast-break points in the third and were 9 for 23 in the quarter.

Denver opened the game by missing its first six shots, including a pair of 3-point attempts, as San Antonio raced to a 7-0 lead. The Nuggets closed within 14-12 on eight points by Faried off a series of short jumpers, layups and a dunk.

Denver opened the second quarter on a 12-0 run to take a 39-28 lead. San Antonio went 3 minutes without scoring before Parker double-pumped to make a contested layup.

The Nuggets were 23 for 39 following that early drought, continually attacking the basket against the Spurs.

Green made three straight 3s to fuel a 12-4 run to close the first half, pulling San Antonio within 54-51. Green also had a free throw in the run, closing the first half with 19 points while shooting 6 for 7 from long range.

NOTES: The Spurs are 64-19 at home against the Nuggets, which includes games at all three of the franchise's home courts: the Hemisfair Arena, Alamodome and AT&T Center. . Ty Lawson had two points and played 19 minutes after being listed as a game-time decision due to strained and bruised right heal. . The Spurs' Australian contingent – G Patty Mills and C Aron Baynes – were both on the inactive list. . Nuggets G Julyan Stone (knee) sat out with an injury. Stone has been inactive 61 times this season and had seven did not play-coach's decision. . Parker gave Duncan an inquisitive look when the All-Star power forward opted to toss a three-quarters court pass to Leonard off a rebound rather than give it to the point. Duncan's pass sailed untouched out of bounds as Parker stared dumbfounded, before smiling and shaking his head. . Former Spurs center David Robinson received a huge ovation when he appeared on the large television displays as the team honored those in attendance who had served in the Armed Forces.

Loading Slideshow...
  • Tiago Splitter, Wilson Chandler, Kenneth Faried

    San Antonio Spurs' Tiago Splitter, left, of Brazil, is impeded by Denver Nugget defenders Wilson Chandler, left, and Kenneth Faried, right, as he tries to score during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Tony Parker

    San Antonio Spurs' Tony Parker (9), of France, has his finger looked at after an injury during the second half of an NBA basketball game against the Denver Nuggets, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • George Karl

    Denver Nuggets coach George Karl, center, waits for his team during a timeout in the second half of an NBA basketball game against the San Antonio Spurs, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Kenneth Faried, Manu Ginobili

    San Antonio Spurs' Manu Ginobili, left, of Argentina, goes to the basket as Denver Nuggets' Kenneth Faried (35) defends during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • JaVale McGee, Tim Duncan

    San Antonio Spurs' Tim Duncan (21) is pressured by Denver Nuggets' JaVale McGee, center, during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Tim Duncan

    San Antonio Spurs' Tim Duncan reacts after he was fouled while shooting against the Denver Nuggets during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Tim Duncan, Ty Lawson

    San Antonio Spurs' Tim Duncan (21) and Denver Nuggets' Ty Lawson (3) chase a loose ball during the first half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. (AP Photo/Eric Gay)

  • Tim Duncan, Tiago Splitter, Danilo Gallinari

    Denver Nuggets' Danilo Gallinari (8) drives to the basket between San Antonio Spurs' Tiago Splitter, left, of Brazil, and Tim Duncan (21) during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Tony Parker,Danny Green, Ty Lawson

    Denver Nuggets' Ty Lawson (3) drives past San Antonio Spurs' Tony Parker (9), of France, and Danny Green (4) to score during the second half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. San Antonio won 100-99. (AP Photo/Eric Gay)

  • Kosta Koufos, Tim Duncan

    San Antonio Spurs' Tim Duncan (21) grabs a rebound over Denver Nuggets' Kosta Koufos (41) during the first half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. (AP Photo/Eric Gay)

  • Andre Iguodala, Kosta Koufos, Tony Parker

    San Antonio Spurs' Tony Parker, center, of France, drives between Denver Nuggets defenders Kosta Koufos (41) and Andre Iguodala (9) during the first half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. (AP Photo/Eric Gay)

  • JaVale McGee, Manu Ginobili

    San Antonio Spurs' Manu Ginobili (20), of Argentina, drives to the basket past Denver Nuggets' JaVale McGee, left, during the first half of an NBA basketball game, Wednesday, March 27, 2013, in San Antonio. (AP Photo/Eric Gay)