A deputy head teacher has been banned from the profession after going into school apparently drunk on a number of occasions.