Veterinarians will often prescribe non-steroidal anti-inflammatory drugs, or NSAIDs, for pain in dogs, according to rover.com. NSAIDs can help reduce swelling, stiffness and joint pain in dogs.