Medication in dental pain will give you temporary relief however, dental treatment is needed if you have caries or any other dental issue. dental caries can be treated with either root canal treatment or extraction of teeth but that can be decided by dentist.