However, if separation anxiety is the culprit, your vet may prescribe an anti-anxiety med for your dog's specific needs.
Many medications are available in tablet, pill or liquid form.
Amitriptyline: Amitriptyline can be used to treat separation anxiety or generalized anxiety disorder.