Whenever necessary to make an inspection to enforce any ordinance or resolution, or whenever there is reasonable cause to believe there exists an ordinance or resolution violation in any building or upon any premises within the jurisdiction of the city, any authorized official of the city may, upon presentation of proper credentials, enter such building, perform any duty imposed upon him by ordinance; provided, that except in emergency situations or when consent of the owner or occupant to the inspection has not been otherwise obtained, he shall give the owner or occupant, by posting on the premises twenty four (24) hours' written notice of the authorized official's intention to inspect. The notice transmitted to the owner or occupant shall state that the property owner has the right to refuse entry and that in the event such entry is refused, or in emergency situations, inspection may be made only upon issuance of a search warrant by a duly authorized magistrate. In the event the owner or occupant refuses entry after such request has been made, the official is empowered to seek assistance from any court of competent jurisdiction in obtaining such entry. (2000 Code § 1-112)