Which one is more important?

Which one is considered more when applying to the university: school grades or SAT scores?

From this website I have learned grades/GPA, but this might vary by school. You can find out school specific answer to this question by looking at the school common data sets.

GPA is generally more important than test score.

Course rigor and grades received in these classes.