Pages

Tuesday, July 28, 2009

How to Comment/Uncomment Code in SSMS 2005/2008

Using keyboard shortcuts you can pretty fast to
comment/uncomment code line(s) in Query Analyzer/SSMS.

In Query Analyzer(SQL Server 2000) this can be done by:


Ctrl+Shift+C - To Comment the current line, or selected lines of code.
Ctrl+Shift+R - To Uncomment the current line, or selected lines of code.


In SSMS (SQL Server 2005/8) use tho following combinations:


Ctrl+K,C - To Comment the current line, or selected lines of code
Ctrl+K,U - To Uncomment the current line, or selected lines of code

No comments:

Post a Comment