Any building official, upon the showing of proper credentials
and in the discharge of his duties, may enter upon any building, structure
or premises at any reasonable hour. In the event that the building
official is denied or refused access, he may make application to the
court for a search warrant.