If you are taking antihistamines or tricyclic antidepressants (such as amitriptyline, nortriptyline etc) then this may contribute to your symptoms.
If you were anxious about dental procedures, this may contribute to urinary retention but should subside when the procedure is completed.