How to: Remove Columns from Query Results
The document is archived and information here might be outdated

How to: Remove Columns from Query Results 

If you are using a column in a Select query but do not want to display it in the result set (that is, you do not want it in the query's select list), you can remove it from output. After you remove the column from the query's output, you can still use it in search conditions or as a sorting field.


If you want to remove a column from the query altogether, see How to: Remove Columns from Queries.


The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To remove a column from the query output

  • In the Criteria Pane, clear the check box in the Output column for the data column you want to remove. (If you want to add the column back to the query output, you can check the Output column again.)


  • Remove the column from the output list in the SQL pane.

See Also

© 2016 Microsoft