os: windows 10
ssms v17.9.1
enter image description here
If I want to run the first and the third query, the unique solution I find is select and comment(CTRL+K, CTRL+C) the second query and select the three query lines and F5(execute query), Is there another solution or shortcut?.
For example a way to select non consecutive lines.
Exist another productivity way to achieve this?

enter image description here

  • While there are other means to do this, note that this method of commenting out the inner statements is safest and clearest way to work with queries. – clifton_h Feb 2 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.