Who the Devil Wrote This SQL Code? - Simple Talk

From SQL Server Wiki
Jump to navigation Jump to search

sterbalr • 2 months ago While this is true for checked in queries, there are a lot of one time queries that benefit from being one line, or with odd comma configurations.

When I connect to a server, in a comment area of my default query are a half a dozen queries I need to run ad hoc. I know what they do. Grabbing 1 line is vastly easier than any other way of actually running the queries.

When I document the query I display it both as a one liner and in a block format.