Query Editor

Open the Query Editor

Open the Query Editor.

  • For Sage 200 versions 2026 R1 and later, open the Query Editor from the SDK.

  • For Sage 200 versions up to 2025 R2, open the Query Editor from the Workspace Designer.

    To do this, first open the Workspace Designer from the Sage 200 desktop client by selecting Tools > Run Workspace Designer. In the Workspace Designer open Content Part Designer, and then in the Content Part Designer open Query Editor.

    To access Workspace Designer you must also enable the setting Can Edit Workspaces in your user properties in System Administration.

Query Editor desktop

The Query Editor desktop is arranged into four panes:

  • Model Models are data schemas that describe how the information held in a particular database can be accessed and displayed within Sage 200. Each model is contained in its own dynamic link library (DLL). pane.

    This shows all of the tables in the database for the selected Data Store. You can expand each table to see a full list of fields for that database table.

    This is only for reference and the tables cannot be edited here.

  • Centre pane.

    This pane is not titled. This is where you enter the text for a new query, or change the text of an existing query.

  • Queries pane.

    This lists all of the current queries for the selected model. All of the Sage 200 default database queries are listed here.

  • Output and Results pane.

    The Output tab shows everything that has been loaded the first time you open the Query Editor. When you create a new query, it shows whether the build has been successful. Any query errors are highlighted.

    The Results tab (displayed when you click Preview) shows a preview of the query results.

Note: To view or amend existing Sage 200 Workspace Queries you will require a SDK licence. See Copy Workspace Queries from SDK.

Query Editor toolbar