All the officers designated under this article or any future amendments to the same shall, as far as may be necessary for the performance of their respective duties, have the right to enter any building or premises in the city at any time.