What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

You can comment a statement in T-SQL (for SQL Server) using --

StackOverflow does not show this as a comment.

--Comment goes here and code follows
INSERT INTO TABLE ....

The C# style comment shows up properly.

/*Comment goes here and code follows*/
//Comment goes here and code follows
INSERT INTO TABLE ....

I think the SQL Server style should be supported as well.

share|improve this question
4  
Take it up with Google, man: code.google.com/p/google-code-prettify This functionality is developed out-of-house. –  XMLbog Nov 17 '09 at 15:55
2  
VB comments (start with ') don't work either. I usually do this: ''// to trick the highlighter –  Michael Haren Nov 17 '09 at 16:12
    
How does one accept a comment as an answer?!?!?! –  Raj More Nov 20 '09 at 13:13

You must log in to answer this question.

Browse other questions tagged .