The building official may request and shall receive, so far as may be necessary in the discharge of his duties, the assistance and cooperation of the sheriff in enforcing orders, of the county attorney in prosecuting violations and of any other county official.