Future space missions, large or small, that address planetary atmospheres should have the capability to observe occultations of the Sun by the atmosphere and to monitor the solar EUV and FUV flux. To be a viable candidate, the solar spectrograph must not compete with the primary experiments for mass and power. We have designed a compact solar spectrograph that covers the spectral range from approximately 200 to 3200 Å. It has no moving parts and records the entire spectrum within its range in a single exposure. The solar spectrograph is based on a classical Rowland grazing incidence design. Because of the intensity of the solar flux, small apertures offer adequate throughput. The spectrum is dispersed along the Rowland circle by three gratings and recorded in three side-by-side segments on a single detector, a CCD. The strong astigmatism in the grazing incidence design is canceled in the foreoptics. Control of stray light is a particular concern for a UV solar spectrograph, because of the extraordinarily large variation in the solar flux across the desired wavelength range. Techniques to minimize the effects of scattering include (1) suppressing it with appropriate coatings and optical components, (2) choosing a detector layout that permits measuring and subtracting the effects of scattered light from the spectrum, and (3) employing a photocathode that discriminates against long wavelengths. We estimate that a flight-ready unit would have a mass of about 1 kg and fit in a volume 20 x 9 x 7 cm.