Querying and Reporting Data

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 27

Module 5

Querying and
Reporting Data
Module Overview
• Introduction to Queries
• Managing Queries
• Configuring SQL Server Reporting Services
Lesson 1: Introduction to Queries
• What Is a Query?
• Objects and Attributes
• Query Elements
What Is a Query?

A query is a specific set of instructions that extract information


about a defined set of objects

Queries in Configuration Manager:


Are based on WMI Query Language (WQL); WQL is similar
to Structured Query Language (SQL)

Are preconfigured for easy use and can be customized;


you can create your own queries

Data queries return information related to resources

Status message queries return status messages stored in


the database
Objects and Attributes

There are over 20 object types available for building queries


A
inConfiguration
ConfigurationManager
Managerobject type is a resource class
containing a set of attributes that represent Configuration
Each object
Manager type consists
database objectsof one or more attribute classes
Some of the object types include:

Object Type Deployment


System Resource
User Package
Resource

Attribute Class Processor Disk Drives


User Program
Group Object Types
Resource
Attribute Current Clock Speed Manufacturer Partitions SCSI Bus
Site
Role
Software
System
Metering
Resource
Rule
Query Elements

New
Delete
Required
Name
Group
Not
Logical Attribute
Operators
Class Required
Sort
Properties Change
Object Type
Group Operator
Indicators Ungroup

Attribute
Every
Optional classes
query
query and a
requires
elements attributes
unique aretorequired,
name,
are used and
narrow and if
the
not specified,
System
scope all available
ofResource
a query attributes
is the default objectdisplay
type
Lesson 2: Managing Queries
• Managing Data Queries
• Managing Status Message Queries
• Managing Query Results
• Demonstration: Creating and Running Queries
Managing Data Queries

To create a data query:


Complete the settings on the General page of the
1 Create Query Wizard

2 Import an existing query or build a query from scratch

3 Edit the query statement

Edit the General tab of the query statement properties


4 to specify the criteria to display

5 Add search criterion on the Criteria tab

When creating criterion, use the Values button


6 to display the related data currently stored in the
database
Managing Status Message Queries
To create a status message query:
Using the Create Status Message Query Wizard, specify
1
a name for the new query

2 Edit the query statement

To modify a status message query:


Open a query’s properties window and modify any
1 settings

2 Edit the query statement

Query Site
Database
Managing Query Results

status
For data message queries:
queries:
You can add or remove Delete
attributes
You can saveto control theas a
this view
attributes
text file ordisplayed
print thisin the by
view New
results pane
using the File menu
You
You can
can modify
use thethe sort
Edit order
menu to
of the attributes displayed
copy, delete, or find
Properties
messages
You in this
can control view
the column
order
You canof the
usedisplayed data by
the view menu to
moving
customizethethe
attributes up or
view, including Move Up (Left)
down
options to limit the number of
messages
You displayed
can modify and the
how query Move Down (Right)
columns
results areshown
displayed by
moving the query attributes
up or down in the table
Demonstration: Creating and Running Queries
In this demonstration, you will see how to:
• Create a data query
• Run a data query
• Create a status message query
• Run a status message query
Lab A: Creating and Running Queries
• Exercise 1: Creating Data Queries
• Exercise 2: Creating Subselect Queries
• Exercise 3: Creating Status Message Queries

Logon information
Virtual machine 10747A-NYC-DC1-C 10747A-NYC-CFG-C
User name Contoso\Administrator
Password Pa$$w0rd

Estimated time: 30 minutes


Lab Scenario
You have been asked to create queries to help with the site
management at Contoso, Ltd. Specifically, you need to
create queries that can be used for creating collections to
help deploy departmental line of business applications to
users. Additionally, you need to review the available status
message queries and create additional status message
queries to assist with managing the Configuration Manager
hierarchy.
Lab Review
• Why did you use the OR operator for the query to return
both the Production users and the Research users?
• In your work environment, what additional status
message queries would you make or have you made?
• Why would you import an existing query to create a new
query?
Lesson 3: Configuring SQL Server Reporting Services
• Overview of SQL Server Reporting Services
• Prerequisites for Configuration Manager Reporting
• Configuring SQL Server Reporting Services
• Configuring the Reporting Services Point
• Demonstration: Installing a Reporting Services Point
• Configuring Report Subscriptions
• Configuring Report Security
• Creating Reports by using the Create Report Wizard
Overview of SQL Server Reporting Services

SQL Server Reporting Services is a SQL Server component


that supports the development and use of rich reports in a
managed environment

Advantages: Create reports by:


• Industry-standard reporting system • Editing an existing report in
Microsoft Report Builder and use
the "Save As" option
• Higher performance, availability,
and scalability • Using the Create Report Wizard
in the Configuration Manager
console
• Report subscription feature
• Using Microsoft Report Builder
from the SQL Server Reporting
• Simplified creation of SQL-based Services website, supplied with
reports SQL Server
Prerequisites for Configuration Manager Reporting

To install a reporting services point, you must first install and


configure SQL Reporting Services on either the same SQL server
as the site database or on a SQL server that is running the same
version of SQL server as the site database server

Reporting
Services Point

Primary
Site
Configuring SQL Server Reporting Services

1. Install SQL Server with the Reporting Services


component
2. Install the default instance or a named instance of SQL
Server; install SQL Server Reporting Services in the
default SQL Server instance if you have more than one
reporting services point in your Configuration Manager
site
3. Connect to SQL Server Reporting Services by using:
• Server name
• Report server instance
4. Configure the following properties for the reporting
services point:
• Service Account
• Web Service URL
• Database
• Report Manager URL
Configuring the Reporting Services Point

Although the Add Site


System Role Wizard fills in
most settings automatically,
you must:
• Verify the database
connection before
continuing through the
wizard
• Specify credentials for SQL
Server Reporting Services
to connect to the
Configuration Manager
database

• Use the Set button to


specify a Windows account
Demonstration: Installing a Reporting
Services Point
In this demonstration, you will see how to:
• Configure SQL Server Reporting Services
• Add the reporting services point role
• Test the reporting services point
Configuring Report Subscriptions
Configuring Report Security

Pointers on report security:


• You can use the basic permissions granted from the Security roles

• You can configure report security in the Reporting Services website

• You can break inheritance and configure individual report security in


the Configuration Manager console
Creating Reports by Using the Create Report Wizard
Lab B: Configuring Reporting
• Exercise: Configuring a Reporting Services Point

Logon information
Virtual machine 10747A-NYC-DC1-C 10747A-NYC-CFG-C
User name Contoso\Administrator
Password Pa$$w0rd

Estimated time: 30 minutes


Lab Scenario
Your organization is planning on migrating all of their client
systems to Windows® 7, and the migration project team
wants to be able to view daily reports on the progress. You
have been asked to ensure that Configuration Manager
administrators and the migration project team can view
the reports generated by Configuration Manager. Although
Configuration Manager administrators can use the console
to view the reports, the migration project team cannot.
To ensure that the migration project team can view the
reports, you also must ensure that the Reporting Services
website is functioning.
Lab Review
• Why was the number of users returned in the queries
greater than those returned in the report?
• What account should you use for the SQL Server
Reporting Services service account?
• What rights do users need to view reports on the SQL
Reporting Services website?
Module Review and Takeaways
• Review Questions
• Common Issues and Troubleshooting Tips
• Real-world Issues and Scenarios
• Best Practices
• Tools

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy