What happens to your credit on a short sale?

A short sale will have a detrimental affect on your credit record but not as bad as a foreclosure.