The Astrophotography Calculator will give you proper exposure time to photograph the night sky without star trails. Note that light pollution and other variables may affect the accuracy of the results.