• subscribe
March 27, 2002 12:00 AM

Tip: Hidden Features in Query Analyzer's Object Browser

SQL Server Pro
InstantDoc ID #24287

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.



ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Jan 14, 2005

    Awesome, thanks!!

  • Bruno Adam
    10 years ago
    Apr 11, 2002

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

  • Bruno Adam
    10 years ago
    Apr 11, 2002

    Hi,

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

You must log on before posting a comment.

Are you a new visitor? Register Here