As in humans, when a dog drinks alcohol, it causes depression of their central nervous system.
At a minimum they can become drowsy and off-balance; on the more harmful side, it can affect their heart rate and lead to a dangerous condition called metabolic acidosis.