6 responses

  1. Brian K
    July 12, 2011

    Joe Celko had a book a few years ago about SQL programming style, that’s the only formatting book I’ve ever heard of. Never read it myself, so this comment ends abruptly.

  2. robert matthew cook
    July 12, 2011

    erin, thanks for the reminder on taking care of the basics first: readability. there were several #tsql2sday posts with similar recommendations. as far as a recommended t-sql format, i think there are too many preferences. if someone else besides you reviews the same code then you could end up in a formatting ping-pong game. having churned a lot of code in the past and working with mostly vendor code now i have given up on storing t-sql in a given format and simply run it through a formatter before reading. may be something to consider. thanks again for the post and really enjoying the site.

    • Erin Stellato
      July 14, 2011

      Hi Robert! What formatter do you use to push code through? Glad you like the site (I have a lot of fun with it :)

Leave a Reply




Notify me of followup comments via e-mail. You can also subscribe without commenting.

Back to top
mobile desktop