|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Tuesday, October 05, 2010 6:49 AM
Points: 611,
Visits: 29
|
|
Ok, i didn't run the script of the question, but i thought the blank between end of line and "--" was mandatory.
Thanks anyway for your answer and explanation.
EuG
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 10:54 AM
Points: 356,
Visits: 753
|
|
Oleg,
Thanks for the heads up and clear explanation, does make a lot of sense. Will probably remember that one for a long time. 
Eugene,
Whilst it's not neccessary to have a space between the code and the comment, it's certainly nicer on the eye. The code highlighter on the forum makes it look wrong as it only identifies whole words.
Generally I'd have the spaces, as though I could write this:
SELECT 1 FROM[dbo].[table] It's not as well written, from my opinion as - plus you're less likely to get into trouble...
SELECT 1 FROM [dbo].[table]
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Tuesday, October 05, 2010 6:49 AM
Points: 611,
Visits: 29
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 1:54 AM
Points: 7,086,
Visits: 7,138
|
|
nice tidy question with no tricks. clear explanation.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|