Excavation for a building foundation is to be dug next to an ajoining building. How much written notice must be given to owners of the ajoining building?

Excavation for a building foundation is to be dug next to an ajoining building. How much written notice must be given to owners of the ajoining building?