An excavation for a building foundation has to be done next to an adjoining building. How much written notice must be given to the owners of the adjoining building?

An excavation for a building foundation has to be done next to an adjoining building. How much written notice must be given to the owners of the adjoining building?