HOUSTON (AP) -- Rafer Alston wears the same No. 12 that Rick Adelman wore when he played for the San Diego Rockets nearly 40 years ago.
On Monday, Alston helped Adelman get a more significant number -- his 800th career coaching victory.
"I know that when you hit something like that, you really think about all the good things that happen to you," Adelman said. "I have been really fortunate to have three different teams that are very, very good and that's why you get wins like that."
Adelman, who won 395 games coaching the Kings from 1998-2006, is one of six active coaches with 800 wins, joining Pat Riley, Phil Jackson, Jerry Sloan, Don Nelson and George Karl.
"Impressive," Alston said. "I hope they ask the question, who was on that team that helped him win 800? Years from now, people are going to remember my name."
Shane Battier added 15 points for the Rockets, who won for the second time in five games since the end of their 22-game winning streak last Tuesday. Houston entered Monday's action in fifth place in the Western Conference, but only one game behind New Orleans and the Los Angeles Lakers for the No. 1 spot.
Kevin Martin scored 18, and Ron Artest and Francisco Garcia had 17 apiece to lead the Kings, who've lost eight of their last nine road games. Sacramento allowed 100 points for the 17th time in 18 games as Houston shot 50 percent from the field (35-of-70).
Several Kings congratulated Adelman as he walked off the court.
"I helped him get a few of those," Sacramento center Brad Miller said. "He's a great coach to have played for."
The Rockets led by eight midway through the fourth quarter, but baskets by Quincy Douby and John Salmons cut the lead in half. Artest scored inside with 4:13 left to pull Sacramento within two at 91-89.
Rookie Carl Landry answered with a basket inside and Alston then hit two free throws and flipped in a one-handed shot from the baseline as the Rockets took control for good.
"Rafer's been playing well," McGrady said. "We needed all those points that he gave us."
Houston kept Sacramento at bay by going 9-of-12 from the free-throw line in the final 1:38. The Rockets went 33-for-42 from the free-throw line overall, setting season highs in both makes and attempts.
Houston came in shooting only 72 percent from the line.
"It's going to come down in games, especially in the playoffs, where you've got to make foul shots," said McGrady, who was 7-for-9 on free throws. "Tonight, we did a better job of concentrating on going up there and knocking them down."
McGrady said he sprained his left shoulder fighting through a screen late in the game. It was wrapped in ice afterward, but McGrady didn't expect to miss Wednesday's game against Minnesota.
McGrady twisted his left ankle less than five minutes in and scored only two points in the first quarter. Alston picked up the slack, scoring 12 in the quarter, and Houston led 26-24.
Chuck Hayes threw in a hook and McGrady sank a baseline jumper at the start of a 9-0 Rockets spurt that broke a 37-37 tie.
Artest and Garcia swished 3-pointers in the last 1:10 of the half to trim Houston's lead to 53-49 by the break. Both teams shot over 50 percent from the field in the first half and the Kings also went 6-for-7 from 3-point range.
The Kings missed seven of their first 10 shots out of the break and Houston stretched its lead to 65-55. Garcia scored seven points in the last 2:16 of the third quarter as Sacramento cut the deficit to 77-72 heading to the fourth.
McGrady was resting on the bench as the final quarter began. He returned with 9:01 left and the Rockets leading 83-79. He hit two mid-range jumpers and sank a pair of free throws to push Houston's lead to 91-83.
"It was tough to overcome their free-throw shooting," Sacramento coach Reggie Theus said. "We had some runs, but then they went to the free-throw line and it was a rally killer."
The Rockets improved to 15-2 when scoring 100 points or more at home this season. Sacramento has dropped seven of its last 11 games overall, and eight of the last 11 meetings with Houston.
Salmons scored 15 for the Kings. ... Point guard Beno Udrih, who missed the last three games with a back strain, played 10 minutes in the first half, then sat out the rest of the night. Theus said Udrih aggravated the injury and was now day-to-day. ... McGrady finished 5-for-16 from the field. ... Mikki Moore had a career-high six assists for the Kings.