title: How to generate a Mandelbrot with T-SQL?
body: <p>Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it.</p>
  
  <p>Turns out someone already has (and recently, it appears).  I'll let someone else post it as an answer, but I'm curious what optimizations can be made.</p>
  
  <p>Alternately, what would you do to make the code more readable?</p>
  
  <p>I'll select the most readable (yet reasonably compact) version as the accepted answer (too bad we don't have rep bounties yet!) unless someone really comes along with a great optimization.</p>
  
  <p>Bonus points to those answers that teach me a little something about T-SQL.</p>
  
  <p>-Adam</p>