Add Default WordPress Formatting To Data From External SQL Tables?

You can run the the_content filters on your data.

foreach ($results as $r) {
  echo apply_filters('the_content',$r); 
}

That should get you the same formatting as in your posts.

http://codex.wordpress.org/Function_Reference/apply_filters