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

后端 未结 24 690
夕颜
夕颜 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:44

    The following works for me ... I use SSMS 2012

    1 - Click on Tools > Options > Environment Keyboard

    2 - For Show commands containing, set it to Query.Execute

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

    4 - For Press shortcut keys, perform the Ctrl-Enter combination.

    5 - Click on Assign. Click on OK.

提交回复
热议问题