Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.82 KB

how-to-view-sql-statement-configuration-manager-reports.md

File metadata and controls

38 lines (29 loc) · 1.82 KB
title titleSuffix description ms.date ms.subservice ms.service ms.topic ms.assetid author ms.author manager ms.localizationpriority ms.collection
How to view the SQL Statement for reports
Configuration Manager
Information to find out what SQL statement is used in a Configuration Manager report.
04/30/2019
sdk
configuration-manager
how-to
e596b1be-c09e-4e44-a400-43345ab0f71b
banreet
banreetkaur
apoorvseth
low
tier3

How to view the SQL statement for Configuration Manager reports

Reports in Configuration Manager can be based on simple SQL statements or very complex ones that prompt the user for information, join several Microsoft SQL Server views, and use filters to limit the results. Use the following procedure to find out what SQL statement is used in a Configuration Manager report.

To view the SQL statement for a report

  1. In the Configuration Manager console, select Monitoring.

  2. In the Monitoring workspace, expand Reporting, and then select Reports.

  3. Select the report for which you want to view the SQL statement and then, in the Home tab, in the Report Group group, select Edit.

  4. The Report Builder window opens. In the Report Data pane, expand Datasets to view the data sets for the report.

  5. Double-click a dataset to open the Dataset Properties dialog box.

    The first dataset is typically (but not always), the main SQL statement for the report. Other datasets might contain the SQL statements that can be used to present a list of items for a user to choose from, such as a list of computers.

  6. You can view and modify the SQL statement for the dataset in the Query field.

  7. Close the Dataset Properties dialog box.

  8. Close Report Builder.

See also

How to modify Configuration Manager reports