From time to time, I run across undocumented Query Analyzer features. Microsoft software designer Gert Drapers—primary designer of all the SQL Server 2000 tools, including Query Analyzer—recently showed me an undocumented way to generate a list of columns in a large table.

In Object Browser, navigate to the table name that you want and click the plus (+) character next to the table name. You'll see several submenus, including one named Columns. Drag the Columns collection to a Query Analyzer window, and Query Analyzer will create a list of all the columns for that table. You can also drag a table name from Object Browser to Query Analyzer—a helpful feature when you're working with tables that have long names.

End of Article




You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

Hi,

I tried the tip but it does not work. I've got a error message "no script generated"...

Bruno Adam

Sorry...this works actually. You got to expand the 'columns' folder first...

Bruno Adam

Awesome, thanks!!

Anonymous User