I am sure the Umrah visa will not allow you to visit Dammam. I am unsure if the transit visa would but if it does then it will be for a very short period may be a few hours and during that period too you may be restricted to the airport.