Ulcers can occur in various parts of a dog's body, but the most common type of ulcer in dogs is a gastrointestinal ulcer, which affects the stomach or small intestine. Other types of ulcers that can occur in dogs include skin ulcers, which can be caused by trauma or infections, and corneal ulcers, which can result from injuries to the eye.