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

后端 未结 24 695
夕颜
夕颜 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

    You can check out this add-in for SSMS 2012. Place the cursor within the statement you want to execute and press CTRL+SHIFT+E

    SSMS Executor - https://github.com/devvcat/ssms-executor/releases

    Update:
    Project moved to github and the addin re-written to support SSMS 2014, SSMS 2016. (Previously, the project lived on codeplex, at SSMS Executor - http://ssmsexecutor.codeplex.com/.)

提交回复
热议问题