We compute the spectrum of the trigonometric Sutherland spin model of BC_N type in the presence of a constant magnetic field. Using Polychronakos's freezing trick, we derive an exact formula for the partition function of its associated Haldane-Shastry spin chain.