Honestly I have never heard someone saying 小学校, so I consider they are different. My explanation is as follow.
小学 is a term for primary school.
小学校 sounds not so good. You can say 小的学校, in this case, it means a small school, no matter this is a primary shcool or middle school. So the amount of students and the area can be both small.