Reputation: 25270
Is there a keyboard shortcut for the "Connect to Server" modal window in Microsoft SQL Server Server Management Studio?
The modal window that is displayed when you first opened up SQL Server Management Studio from the Start Menu or shortcut.
Upvotes: 11
Views: 12671
Reputation: 81
Open a query in SSMS. In the menu bar, select Tools -> Options -> Keyboard (Under the Environment node)
Within the Press Shortcut Keys – Press the key you would like to assign to the shortcut to. In my case I have used F2. Within the commands box highlight Query.ChangeConnection and click on assign. This will now open up the SQL Server connection window on pressing F2.
Upvotes: 8
Reputation: 411
Another way is to create a shortcut. For instance I use: Ctrl+K,Ctrl+O for this purpose.
Upvotes: 21
Reputation: 4505
only for ssms 2012
One work around that I found is to customize the listing of options on 'Query' menu bar and move the 'Change Connection...' option to the top under 'Query|Connection'. Once that is done, the keyboard shortcut would be,
'Alt' + 'Q', 'Right Arrow Key' then 'Enter key'.
Btw, to customize 'Query' to move 'Change Connection...' to the top:
Now, 'Alt' + 'Q', 'Right Arrow Key' then 'Enter key'. is ready to use. Without the customization, the shortcut would be 'Alt' + 'Q', 'Right Arrow Key', 'Up arrow key' then 'Enter key'.
Btw, to connect to object explorer, Alt + F, E works.
Upvotes: 1
Reputation: 25270
F8 (Object Explorer), Alt + F (File Menu), E (Connect Object Explorer)
Upvotes: 12