Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Steve Jones SSMS Tips - Text Results RE: SSMS Tips - Text Results
March 28, 2017 at 12:07 pm
SQLRNNR - Tuesday, March 28, 2017 11:08 AMsknox - Tuesday, March 28, 2017 9:32 AMtimwell - Tuesday, March 28, 2017 7:25 AMI knew about ctrl-T but looked up ctrl-shift-T in case that was a modification to switch "quickly" (as the question said) instead of waiting for the next query.I had not heard of ctrl-shift-T. It's very interesting but not sure how much I would ever use it to switch words around.
It can be useful in testing queries with different values. In the following snippet, for example,
WHERE ID = 1 --2
if you position the cursor just after the 1 and press CTRL-Shift-T, it will swap the 1 and the 2, but leave the -- in place, giving youWHERE ID = 2 --1
allowing you to quickly swap out values to test with.Now that is useful. I hadn't played with it and figured the -- would switch too.
+1 (with thanks to Steve)