The best way to secure the wall to the foundation is to use rebar pins or other heavy-duty fasteners.