Has anyone looked at your dog's anal glands? Inflammation in the anal glands can cause a lot of pain. So can perianal fistulas.