How can I run just the statement my cursor is on in SQL Server Management Studio?

后端 未结 24 644
夕颜
夕颜 2020-12-04 17:19

As a long time Toad for Oracle user, I have gotten used to hitting Ctrl+Enter and having just the statement under the cursor be executed.

In SQL Server Management St

24条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 17:58

    Above answer helped me to create a shortcut to Execute current Statement without selecting the query

    1 - Click on Tools > Options > Environment > Keyboard

    2 - For Show commands containing, set it to SqlComplete10.Common_ExecuteCurrentStatement

    3 - For Use new shortcut in, set it to SQL Query Editor

    4 - For Press shortcut keys(desired shortcut key), perform the Ctrl-Enter combination.

    5 - Click on Assign. Click on OK.

提交回复
热议问题