Twitter

Follow SQLQuill on Twitter

Subscribe

MN Pass

TSQL Tip O’ the Week – 7/5/11 – Keyboard Shortcuts

This weeks tip:

Again….What’s the fastest land animal?  The Cheetah.

What’s the fastest way to test a query?  Don’t use your mouse and learn lots of keyboard shortcuts!

Some of my favorites in the query editor of SQL Server Management Studio are:

  • All the text selection short cuts – standard in most Windows applications
  • F5 – Execute the highlighted query
  • CTRL + T – Results to Text
  • CTRL + D – Results to Grid
  • CTRL + R – Show or hide the results pane
  • CTRL + Shift + R – Refresh the Intellisense cache
  • CTRL+K then CTRL+C – Comment out the highlighted text
  • CTRL+K then CTRL+U – Uncomment the highlighted text

Pick one or two of these for a day and work on them.  In no time you will be writing, testing and understanding more code than ever before – and if your mouse runs out of batteries – it’s just not a problem.

Another good way to embed these in your mind is to hang a cheat sheet in your office for a quick and easy reference.

Here are some related posts from the intraweb:

Previous Tips O’ the Week

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>