Over the years I have spent huge amounts of time converting SQL queries to strings for use in my programs and back again for testing in SQL Management Studio
Download