The Spurs blew a 16-point lead in the second half but Tony Parker helped right the ship, scoring eight of his 14 points in the fourth quarter.
The win was the eighth straight overall and fourth in a row on the road for the Spurs, who are on their annual Rodeo Road Trip.
Rodney Stuckey had 23 points and eight assists for Detroit, which has lost two straight games.
Members of Congress to keep receiving porn magazine
Disney's 'Jessie' to feature network's first engagement