We investigate the D-dimensional Klein-Gordon equation in the presence of both Coulomb and Cornell potentials by quasi-exact methodology. The Coulomb potential yields a degenerate result as the dimension increases, i.e. the quantum number l plays no role in the energy relation. For the Cornell potential, however, the behavior is different and no degeneracy exists. Closed form of eigenfunctions is reported and the energy behavior for different states is numerically discussed.