patternMinor
Are there other sites forbidding SQL developer to use c style comments?
Viewed 0 times
forbiddingaresitessqlotherstyledevelopertherecommentsuse
Problem
My personal opinion is that C style comments should not be used by sql developers.
The problem with C Style comments is, that they do not nest.
C Style comments are one of the lifesavers for the support when they have to do some ad hoc corrections in stored procedures, but that only works well, when they don't have to fight with existing C comments.
The problem with C Style comments is, that they do not nest.
C Style comments are one of the lifesavers for the support when they have to do some ad hoc corrections in stored procedures, but that only works well, when they don't have to fight with existing C comments.
Solution
I never use C-style comments in SQL code. First off, Management Studio gives a very easy way to comment out blocks of code with SQL-style commenting, and just as easy to uncomment it out.
And not to mention if another person opens a SQL script file not in SSMS, C-style comments have a tendency to be elusive and the commented out code doesn't look so commented.
Just my opinion, but I stay away from C-style commenting. No gain.
And not to mention if another person opens a SQL script file not in SSMS, C-style comments have a tendency to be elusive and the commented out code doesn't look so commented.
Just my opinion, but I stay away from C-style commenting. No gain.
Context
StackExchange Database Administrators Q#1713, answer score: 3
Revisions (0)
No revisions yet.