![](http://sqlserver.work/wp-content/themes/cocoon-master/images/b-woman.png)
SQL Server Management Stuido(SSMS)では、
SQLの行の先頭に「–(ハイフン2つ)」を付けることで、
コメントアウトすることできます!
![](http://sqlserver.work/wp-content/themes/cocoon-master/images/b-woman.png)
複数行をコメントアウトする場合、
1行ずつ手動で設定するのは非常に手間です!
![](http://sqlserver.work/wp-content/themes/cocoon-master/images/b-woman.png)
この記事では、SQLを一括でコメントアウトする方法を記載します!
手順
手順
コメントアウトしたい行を選択して、「コメントアウトボタン」をクリックする。
![コメントアウトボタン](https://sqlserver.work/wp-content/uploads/2021/01/SSMS_commentout_004.png)
結果
SQLを一括でコメントアウトができました
![コメントアウトされた](https://sqlserver.work/wp-content/uploads/2020/07/SSMS_commentout_003.png)
![](http://sqlserver.work/wp-content/themes/cocoon-master/images/b-woman.png)
SQL Server Management Stuido(SSMS)には便利な機能が
たくさんあります!
使いこなして楽をしましょう!