here are instructions on pulling the code:
http://www.bseries.net/html/garage/engcode.php
this may be a dumb question, and i hope i'm not insulting your intelligence, but could it have been the maintenance required light, and not the check engine light? i've noticed people confuse the two on a few occasions.
good luck.