And, to confuse matters, there is also a smaller state school in Buffalo, called
Buffalo State University. And, according to their web site, Buff State is the "oldest institution of higher learning in the City of Buffalo."
http://www.buffalostate.edu/
Also, notice Buffalo State is a part of the system as well. Officially, "Buffalo State, The State University of New York."
....and UB is actually officially known as "University at Buffalo, The State University of New York."
There is also a CUNY (City University of New York) system that receives funding from the state as well.
Also, of note that Rutgers is a system as well. Officially, "Rutgers, The State University of New Jersey." The flagship, and largest, campus is in New Brunswick--and is what most people are familiar with. There are also locations in Newark and Camden. Additionally, there are public universities in NJ that are not part of the Rutgers system. For example, Rowan University in Glassboro is officially just "Rowan University" and was formerly Glassboro State College. More recently, I've noticed some use of the branding style "Rowan University: The State University of South Jersey" which is an obvious way to try to garner the same kind of respect that Rutgers gets as the state's "flagship" institution.