Is it a sin to drink alcohol or to get drunk?

The only time I have had alcohol was in a Muslim country and as I have stated before, it was one of those non-alcoholic drinks with 0.5% alcohol content. Having seen that “non-alcoholic” drinks are so readily available in Muslim countries including Saudi Arabia I assumed that small amounts of alcohol (eg. 0.5%) were acceptable. Hence I started this thread to get clarification as to what is not allowed, drinking alcohol without getting drunk or getting drunk or both.