The Cardinal (6-3) won the doubles point against the Trojans (10-1), who have won five of the last six NCAA team titles.
At No. 1 doubles, Stanford's John Morrissey and Robert Stineman toppled second-ranked Yannick Hanfmann and Roberto Quiroz 6-3.
Hanfmann and Quiroz rebounded in singles, though.
Hanfmann, ranked sixth, defeated No. 26 Tom Fawcett 6-4, 6-4 on Court 1. No. 20 Quiroz won the clincher, beating Morrissey by the same score on Court 2.
OTHER COLLEGE RESULTS
MenSacramento State def. Weber State 4-3 in Sacramento. No. 1 singles (clinching match): Sean Kolar def. Jakub Gewart 7-6 (5), 7-6 (4). Notes: The Hornets were missing two of their top players, injured Marek Marksoo and Niranjan Ram. The Wildcats went 10-0 in the Big Sky Conference during the 2014 regular season. Records: Sacramento State 3-4 overall, 1-0 Big Sky; Weber State 4-8, 0-1.
WomenSacramento State def. No. 46 Long Beach State 4-3 in Sacramento. No. 1 singles: No. 93 Maeva Razakasoa (LBSU) def. Alina Soltanici 6-4, 6-1. No. 2 singles (clinching match): Anna-Maria Nau def. Ebba Uden 6-3, 4-6, 6-4. Records: Sacramento State 5-5; Long Beach State 6-1.