Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Jordan Ryder,
This script removes comments and handles complex nesting. A sql string can be passed in and the function will return the code but with comments removed.
Example of complex scenarios that this function correctly handles:
-- /* multi-line ignored
--*/ this text is not a comment
Comments in SSRS SQL
I ran into a dilemma when I was told that I should not allow potential competitors to view my JavaSc...
Commenting seems to be the bane of every programmer, database or otherwise. Sachin Dedhiya brings us...
Comments in code can be tricky, but certainly some are better than others. What are your bad example...
If you have ever searched for “commenting in TSQL” scripts, I am sure that you’ve found hundreds or ...