Coding curiosity 9: T-SQL gymnastics

The T-SQL stored procedure contained in this text file is crazy, but rather cool. When you invoke the procedure and pass it a filename, it reads any rows that you've inserted into a table hard-coded as psopdf and then creates a PDF file. Each row in the psopdf table is turned into a line in the PDF. The resulting PDF is stored in a location currently hard-coded as "C:\". 

I found this SQL on Ryan Farley's blog. I just never tire of the weird code that some people want to write.