Narrative:

On climb out, after a touch-and-go at dwh, returning to cxo, my student was unaware that the class B started at 2000 ft MSL, and was rapidly climbing toward that altitude. At 1950 ft MSL I took control of aircraft, but we might have carried to or above 2000 ft. Just then I saw the ATR on approach to iah, and dove to miss him and stay out of class B. Perhaps ATC noticed it as a proximity violation. I should not have allowed my student, a commercial licensee but very little recent experience, to proceed so close to the class B airspace. I should have said something or taken control sooner.

Google
 

Original NASA ASRS Text

Title: A C172 DEP FROM DWH ARPT CLBS INTO THE CLASS B OF IAH AND COMES IN CLOSE CONFLICT WITH AN ATR TYPE ACFT ON APCH TO IAH. CLASSIFIED AS AN NMAC.

Narrative: ON CLBOUT, AFTER A TOUCH-AND-GO AT DWH, RETURNING TO CXO, MY STUDENT WAS UNAWARE THAT THE CLASS B STARTED AT 2000 FT MSL, AND WAS RAPIDLY CLBING TOWARD THAT ALT. AT 1950 FT MSL I TOOK CTL OF ACFT, BUT WE MIGHT HAVE CARRIED TO OR ABOVE 2000 FT. JUST THEN I SAW THE ATR ON APCH TO IAH, AND DOVE TO MISS HIM AND STAY OUT OF CLASS B. PERHAPS ATC NOTICED IT AS A PROX VIOLATION. I SHOULD NOT HAVE ALLOWED MY STUDENT, A COMMERCIAL LICENSEE BUT VERY LITTLE RECENT EXPERIENCE, TO PROCEED SO CLOSE TO THE CLASS B AIRSPACE. I SHOULD HAVE SAID SOMETHING OR TAKEN CTL SOONER.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.