Quick Info About an Object

If you highlight the name of an object in a query window in SQL Management Studio and press Alt+F1 you instantly get a set of results showing almost everything you could want to know about the object: columns, parameters, datatypes, constraints, indexes, storage details. This works on your own tables etc. not just system objects. Forget scrolling around in the Object Explorer.

What’s actually happening is that the system stored procedure sp_help is being executed (with the highlighted text as the parameter value) because sp_help is bound to the keyboard shortcut Alt+F1. You can see and customise these query shortcuts in the Environment / Keyboard part of the Options dialogue (menu Tools / Options).

Really obvious once you know it’s there, but it hasn’t been very well publicised!


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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s