What you want to see on DotNetFunda.com ?
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 16885 |  Welcome, Guest!   Register  Login
Home > Articles > Sql Server > Setup Query Shortcuts in SQL Server

Setup Query Shortcuts in SQL Server

3 vote(s)
Rating: 4.67 out of 5
Article posted by Arunjith on 6/12/2012 | Views: 1981 | Category: Sql Server | Level: Beginner | Points: 250 red flag


SQL Server Management studio provides a very useful functionality called query shortcuts. This makes the task of querying the sql server easier. Just by pressing two keys on the keyboard a complex query can be executed.

Introduction


SQL Server Management studio provides a very useful functionality called query shortcuts. This makes the task of querying the sql server easier. Just by pressing two keys on the keyboard a complex query can be executed.


Steps to setup query shortcut in SSMS in detail:

1) Select tools menu and then select options

2) In the options expand environment and then click on Keyboard.

3) In the query shortcuts plane give the query in the Stored Procedures section for one of the shortcuts.


4) Click OK


As shown in the screen shot above the shortcut is ctrl+3.


Example : -
SELECT  * FROM Customer
 
In order to execute this query using shortcut just type table name like
 Customer
and select the table_name  and press ctrl+3.


NB: When a new query shortcut is created you have to open a new query  window for using this.
All the open query windows will not  get this shortcut



If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Latest Articles from Arunjith

About Arunjith P.S

Experience:0 year(s)
Home page:http://www.dotnetfunda.com
Member since:Tuesday, June 12, 2012
Level:Starter
Status: [Member]
Biography:
>> Write Response - Respond to this post and get points
Related Posts

This is part 34 of the series of article on SSIS. In this article we are going to see on how to use an Aggregate (COUNT) data flow transformation control in SSIS packaging.

At times as a DBA/DB Programmer we may need to generate a report on foreign keys across all the tables in a given database. It would be a tedious job to use the SQL Server Management studio and build a relationship diagram. Here is a tip to quickly query the meta data and depict all the foreign keys.

Delete Duplicate rows from the table.

Querying XML instances stored in an XML column requires parsing binary XML data in the column. Parsing binary XML is much faster than parsing the text form of the XML data.

This Article explains you how to Encrypt and Decrypt a text

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 3:34:24 PM