Fun With SSMS

Recently I was showing a friend a query in SSMS, cause that’s what geeks do.  I typed ‘SELECT’ and then dragged the columns over to the query window.  He said “whoa, how did you do that?”  Which reminded me that we all learn little things that we assume everyone else knows but apparently not everyone knows them all.  That is why I love blogging, because I can share and when I read your blog I can learn what you share.  Maybe I know, maybe I do not.  The SQL community prospers either way.

So here is the tip:  If you grab the ‘Columns’ folder underneath the table in SSMS and drag it across to the query window, then all of the column names are listed which is helpful when you do not want to type 40 of the 50 columns that you want for a particular query.  It is a nice little trick, but I wish it would just drag a handful or that it would insert brackets in there but beggers can’t be choosers.  Or can they?  Enjoy!

Advertisement

About SQLGator

Microsoft Data Platform MVP, Florida Gator, Star Wars fanatic and is there anything else...oh yeah PS4! I am a geek and SQL Server Business Intelligence Consultant, there are other technologies greater than these? Not so fast my friend! I also love to travel to new and exotic places.

Posted on July 20, 2012, in Training and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: