--- title: Reorder Output Columns ms.custom: seo-lt-2019 ms.date: 01/19/2017 ms.prod: sql ms.prod_service: sql-tools ms.technology: ssms ms.topic: conceptual helpviewer_keywords: - "reordering output columns [SQL Server]" - "output columns [SQL Server]" ms.assetid: 76462885-de4a-4290-a26b-90696d3671f4 author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: --- # Reorder Output Columns (Visual Database Tools) [!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../includes/appliesto-ss-asdb-asdw-pdw-md.md)] The order in which you add data columns to a Select query determines the order in which they appear in the results. The first column you add to the query appears leftmost in the results, the second column next, and so on. If you are creating Update or Insert queries, the order in which you add columns affects the order in which data is processed. To control where a data column appears in the result set, or in what order it is used, you can reorder the columns. ### To reorder columns for output 1. In the [Criteria pane](../../ssms/visual-db-tools/criteria-pane-visual-database-tools.md), select the row containing the column by clicking the row selector button to the left of the row. 2. Point to the row selector button and drag the row to a new location. -or- Edit the order of the column names in the [SQL pane](../../ssms/visual-db-tools/sql-pane-visual-database-tools.md). > [!TIP] > You can add a data row at a specific location in the Criteria pane by inserting a blank row into the Criteria pane, and then specifying the data column to insert. For details, see [Add Columns to Queries (Visual Database Tools)](../../ssms/visual-db-tools/add-columns-to-queries-visual-database-tools.md). ## See Also [Sort and Group Query Results (Visual Database Tools)](../../ssms/visual-db-tools/sort-and-group-query-results-visual-database-tools.md) [Summarize Query Results (Visual Database Tools)](../../ssms/visual-db-tools/summarize-query-results-visual-database-tools.md) [Perform Basic Operations with Queries (Visual Database Tools)](../../ssms/visual-db-tools/perform-basic-operations-with-queries-visual-database-tools.md)