When I go to Tools > Options > Environment > Keyboard. Type in Query.Sp_whoisactive Press shortcut keys: Ctrl+F1 Click Assign.
When I press Ctrl+F1, It still calls Help.
|
When I go to Tools > Options > Environment > Keyboard. Type in Query.Sp_whoisactive Press shortcut keys: Ctrl+F1 Click Assign. When I press Ctrl+F1, It still calls Help. |
||||
|
Click on Tools > Options. Then navigate to Environment > Keyboard > Query Shortcuts. |
|||||
|
|
In Sql Server 2012, control + F1 is assigned to View Help (Check the Help menu in SSMS). I don't think now we can re-assign to some other functionality. But still I'm not sure why the Control+F1 option is provided in Query Short cuts. So there may be a provision to re-assign this also. Not sure, we have to explore the new features in Sql Server 2012. |
|||
|
|
EXEC master..sp_whoisactive(assuming you created it inmaster)? – Aaron Bertrand♦ Apr 6 '12 at 17:51sp_causes SQL Server to look in themasterdatabase first anyways? – Thomas Stringer Apr 6 '12 at 18:03