Do Not Give Your Dog a Sleeping Pill. Its too risky and may complicate your canines life. Some vets prescribe low doses of Valium or Xanax for dogs with sleep issues, but these drugs are not safe nor are they a real solution. Make no mistake about it: Human medications, especially sleeping pills, are all wrong for your dogs metabolism.