I create a fair amount of t_SQL in the form of selects, views and stored procedures. WHile I try to format my code to make it easy to use, I do encounter code from other people which is not very well formatted; and if you look at the stored procedures or views which ship with Microsoft Dynamics GP, they are generally formmatted with all of the code on a single line.
There are a variety of…