<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SQL Server 2005' and 'Tips and Tricks'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+2005,Tips+and+Tricks&amp;orTags=0</link><description>Search results matching tags 'SQL Server 2005' and 'Tips and Tricks'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Increase Your Productivity With Query Analyzer/SQL Server Management Studio</title><link>http://sqlblog.com/blogs/denis_gobo/archive/2007/09/24/2664.aspx</link><pubDate>Mon, 24 Sep 2007 15:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:2664</guid><dc:creator>Denis Gobo</dc:creator><description>&lt;DIV&gt;&lt;STRONG&gt;Drag And Drop Column Names&lt;/STRONG&gt; &lt;BR&gt;In Query Analyzer you can save a lot of time by using this trick instead of typing all the column names of a table &lt;BR&gt;Hit F8, this will open Object Browser &lt;BR&gt;Navigate to DatabaseName/TableName/Columns &lt;BR&gt;Click on the column folder and drag the column folder into the Code Window &lt;BR&gt;Upon release you will see that all the column names are in the Code Window &lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Use Shortcuts&lt;/STRONG&gt; &lt;BR&gt;Did you know that you can have CTRL + Number key combinations/shortcuts in Query Analyzer? You can set it up so that CTRL + 5 executes sp_who2 for example. I thought everyone already knew this but apparently not; I showed this to 3 coworkers yesterday and they didn't know about it. So how do you set this up? It is pretty easy, select &lt;STRONG&gt;Tools --&amp;gt;Customize&lt;/STRONG&gt; from the toolbar. In the Customize tab you will see 3 shortcuts already: &lt;BR&gt;&lt;BR&gt;ALT + F1 sp_help &lt;BR&gt;&lt;BR&gt;CTRL + 1 sp_who &lt;BR&gt;&lt;BR&gt;CTRL + 2 sp_lock &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;To add your own queries/procedures type or paste the query or stored procedure that you want to execute into one of the empty ones (see picture below) &lt;BR&gt;&lt;BR&gt;&lt;A href="http://photos1.blogger.com/x/blogger/2193/1601/1600/693600/CustomizeQA.jpg"&gt;&lt;IMG alt="" src="http://photos1.blogger.com/x/blogger/2193/1601/400/432547/CustomizeQA.jpg" border=0&gt;&lt;/A&gt; &lt;BR&gt;&lt;BR&gt;If you have 4 Query Analyzers applications open it will be available in all 4 of them. I usually have 4 Query Analyzer applications open, one for staging, one for development and one each for one of the production boxes. so if I have to quickly check that a table is the same on all 4 machines I just hit CTRL + 6 in all 4 Query Analyzer applications and I am done. &lt;BR&gt;&lt;BR&gt;I created a Word document that looks like this &lt;BR&gt;3 - errorlog &lt;BR&gt;4 - product table &lt;BR&gt;5 - country table &lt;BR&gt;6 - vendor codes &lt;BR&gt;7 - sp_who2 &lt;BR&gt;etc etc etc &lt;BR&gt;&lt;BR&gt;The font-size is 32, I printed this out and put it next to my monitor so that I can quickly see which key combination I have to hit. Once you set this up you will see how much time it will save you.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;In SSMS 2005. Click Tools -&amp;gt; Customize -&amp;gt; "Commands" tab -&amp;gt; "Keyboard" button (Lower left corner of screen).On the options window, click the Keyboard option (under Environment). See pictures below: &lt;BR&gt;&lt;BR&gt;&lt;A href="http://photos1.blogger.com/x/blogger/2193/1601/1600/392943/ss2005Keyboardoption.jpg"&gt;&lt;IMG src="http://photos1.blogger.com/x/blogger/2193/1601/400/621497/ss2005Keyboardoption.jpg" border=0&gt;&lt;/A&gt; &lt;BR&gt;&lt;A href="http://photos1.blogger.com/x/blogger/2193/1601/1600/872181/ss2005Keyboardoption2.jpg"&gt;&lt;IMG src="http://photos1.blogger.com/x/blogger/2193/1601/400/356770/ss2005Keyboardoption2.jpg" border=0&gt;&lt;/A&gt; &lt;/DIV&gt;</description></item></channel></rss>