In Netbeans and Eclipse you can hit CTRL + Shift + Down (i think thats netbeans) and it will duplicate a line of code. Is that possible in SQL Server Management Studio? This is running with SQL Server 2008
To find this out, press CTRL+L to display the estimated query execution plan as shown below without actually running the whole query (in fact it runs for top 1 row).
Ctrl + R should show/hide result pane. Ctrl + E should execute the query.
Enter the SQL Server Management Studio (SSMS) shortcut key ALT + F1. Highlighting a table object in code and then pressing ALT + F1 with in the SSMS IDE will execute the equivalent command of sp_help 'object_name' where object_name is the name of the highlighted object.
I think that you can hit CTRL + C without any text selected and in clipboard you got full line after that hit enter and paste line.
Ill check in morning is it working in MGM2008 I use 2005.
If you're using SSMS 18.0 or above and don't use the shortcut for Results to Grid (which currently occupies CTRL+D), then you can update the key bindings in the Options menu.
Edit.Duplicate
Query.ResultstoGrid
When you click "OK" to leave Options, you should find that you can use the key binding straight away.
Edit: Added confirmation that this is only supported from SSMS 18.0 onwards (h/t @Darrin for confirming)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With