SQL Server Keyboard Shortcuts – Creating a short cut key rather than typing a query again and again…

Hi Friends,

SQL Server Keyboard Shortcuts.

In our daily routine, we just type particular query again and again to check something in SQL Server. For example :

sp_who2 : To check the number of connections on the databases.

But SSMS provides us very interesting way to create a Short cut key for that query, i.e. there is no need to type that query again and again.

To create short cut key for sp_who2, open SSMS -> go toTools -> go to Options… as shown in figure:


This will open the new window as shown below:



Here click on keyboard option. Then type your query in front of specified short cut key.


Here I just type sp_who2 in front of Ctrl+3.Now close the SSMS and open SSMS again. Now connect your SQL Server Instance and press Ctrl+3 short cut key to get the output of sp_who2.

Prince Rastogi

Like us on FaceBook Follow us on Twitter | Join the fastest growing SQL Server group on FaceBook

Follow me on TwitterFollow me on FaceBook


About Prince Rastogi

Prince Rastogi is working as Database Administrator at Elephant Insurance, Richmond. He is having more than 8 years of experience and worked in ERP Domain, Wealth Management Domain. Currently he is working in Insurance domain. In the starting of his career he was working on SQL Server, Internet Information Server and Visual Source Safe. He is post graduate in Computer Science. Prince is ITIL certified professional. Prince likes to explore technical things for Database World and Writing Blogs. He is Technical Editor and Blogger at SQLServerGeeks.com. He is a regular speaker at DataPlatformDay events in Delhi NCR. He has also presented some in depth sessions about SQL Server in SQL Server Conferences in Bangalore.

View all posts by Prince Rastogi →

2 Comments on “SQL Server Keyboard Shortcuts – Creating a short cut key rather than typing a query again and again…”

  1. Super cool!

    Note that numpad keys cannot be used, you have to use the numbers at the top line.

    Also, although the header says “Stored Procedure” you can also run normal queries like “SELECT * FROM MyTable”.

  2. Hi Dimitris Staikos,

    Thanks for the information.

    Thanks & Regards:

    Prince Kumar Rastogi

Leave a Reply

Your email address will not be published.