Shan Foster and Alex Gordon both added 13 points for the Commodores (16-0, 1-0 SEC), who stretched their best start ever by beating the Gamecocks (8-7, 0-1) for the fourth consecutive time.
South Carolina made the Commodores work for this victory, swapping the lead eight times with four ties in the second half alone. The Gamecocks harassed Vanderbilt into 16 turnovers, nine of those on steals.
Foster, the SEC's leading scorer, followed up a season-high 32 points against Massachussets last weekend with his worst scoring performance. He was 4 of 11 from the field, including 2 of 9 from 3-point range.
Ogilvy, second to Foster in the league in scoring, made up the difference.
Devan Downey led South Carolina with 22 points, while Zam Fredrick added 21 and Dwayne Day had 14.