As already mentioned a dark sky is needed. Digital sensors are very good a picking up light pollution which if not ruining your shots, will affect them.
Having said that its a good idea to practice a bit somewhere that is not too dark just to get the feel of what you are doing and an idea of what settings work well.
Focussing is often a problem as the autofocus almost certainly will not be able to lock on to stars. A couple of suggestions -
1. See if you can find something distant on the horizon to manually focus on - building, tree against the sky. This can still be difficult is you are at a very dark site.
2. Set the focus ring of lens to infinity. This can have problems as not all lenses focus at infinity when the focus ring shows infinity.
If you want stars to show as single points, so you can see the constellations, then the 600 rule is a good starting point.
Maximum exposure in seconds before trailing occurs =
600/(focal length of the lens x the crop factor of the camera).
On my camera (crop factor 1.5) with the kit lens at 18mm that is about 22 seconds - 600/(18 x 1.5).
This is not an absolute rule as it depends on what part of the sky you are photographing, but it is a reasonable place to start experimenting.
If you want to go further have a look at this bit of free software
http://deepskystacker.free.fr/english/index.html
which allows several shots to be stacked.
Alternatively a mount which tracks the stars as Jonathan has suggested.
If you want star trails, just point the camera at one part of the sky and open the shutter. I have read, but have no experience of, about sensors overheating with long exposures (ie hours). There is also the possibility of the battery running out during a very long exposure. This software (also free) helps with star trails -
http://www.startrails.de/html/software.html
Like the other software mentioned above, it stacks a number of shorter exposures but it preserves the trails.
Along with the warm clothing I'd suggest a chair and maybe a warm drink. These are particularly important if you are taking star trails as inevitably you are going to be outside for some hours. A small torch is also handy, if you can rig a red filter over the light it will help to preserve your night vision.
If you have a pair of binoculars take them. You can see a lot with just a simple pair and it will give you some things to do if you are out for hours.
Hope this helps
Dave
Although a very dark sky is best you can still get something in less than ideal conditions. This was taken about 200 yards from a school and the security lights illuminated the foreground hill, though I was able to shield the camera from the lights. F4.5, ISO 400, 30s
![Astro Photography?](http://backup.cambridgeincolour.com/i958.photobucket.com/albums/ae69/Whindley/Orion2.jpg)