This is based off of John Kohz's sample and is referenced in this blog post for more information: http://sharepointsearch.com/cs/blogs/notorioustech/archive/2007/06/19/contentenumerator-cs-for-stored-procedure-sample.aspx