Reputation: 3278
Does there exist a shortcut to execute the last query run in SQL Server?
I can see the Query shortcuts in the Options menu under Environment (SSMS 2008) but nothing listed seems to describe this functionality.
Upvotes: 4
Views: 1128
Reputation: 1033
I'm not sure that what you're specifically asking for is possible. However if you are willing to tackle your problem another way. I use a tool every day that might make what you are asking for possible, or at least as close as I think you might get.
SSMS Tools Pack is a plugin for SQL Server Management Studio that has a number or really great features. One that might interest you is the Current Window History. This is a window with all of the commands that have been run from this tab. While it doesn't do what you originally asked for, I feel like it is at least in the spirit of what you were trying to accomplish.
Upvotes: 3