Professional Documents
Culture Documents
Exercise
Page 1
Overview SQL Reporting Exercises
Page 2
SQL Reporting Services Exercise
Overview
E1: Reporting Wizard
E2: AlarmLogging & TagLogging Report
E3: UserArchive Report
E4: Reports with Parameter
E5: Report Subscriptions
Page 3
Exercise 1: Create a SQL Reporting project
Use the Reporting Server Wizard to create a report for one WinCC TLG tag
Task:
1. SQL Server Business Intelligence Studio -> New Project
2. Define the WinCC OLE DB Provider as the data source
3. Design the query to get the data of the last 10 seconds for the
TagLogging tag “MARCHIVE\T01”
4. Configure the report layout and format
5. Define the publishing parameters of the report
1. Start -> Programs -> SQL Server -> SQL Server Business Intelligence Studio
Click on Toolbar menu ‘New -> Project’ and select ‘Report Server Project Wizard’
Project name: WinCC Reports Location: 2_SQL Reporting
Page 4
Exercise 1: Create a SQL Reporting project
Use the Reporting Server Wizard to create a report for one WinCC TLG tag
Task:
1. SQL Server Business Intelligence Studio -> New Project
2. Define the WinCC OLE DB Provider as the data source
3. Design the query to get the data of the last 10 seconds for the
TagLogging tag “MARCHIVE\T01”
4. Configure the report layout and format
5. Define the publishing parameters of the report
Page 5
Exercise 1: Create a SQL Reporting project
Use the Reporting Server Wizard to create a report for one WinCC TLG tag
Task:
1. SQL Server Business Intelligence Studio -> New Project
2. Define the WinCC OLE DB Provider as the data source
3. Design the query to get the data of the last 10 seconds for the
TagLogging tag “MARCHIVE\T01”
4. Configure the report layout and format
5. Define the publishing parameters of the report
Finish
6. Result
Report Development Studio opened
Preview
Build -> Deploy solution
WebServer: http://localhost/Reports
Created Report available in the web portal
Ad-Hoc analysis or time-scheduled reporting
Export in different formats (pdf, xls, xml, csv)
Page 6
SQL Reporting Services Exercise
Overview
E1: Reporting Wizard
E2: AlarmLogging & TagLogging Report
E3: UserArchive Report
E4: Reports with Parameter
E5: Report Subscriptions
Page 7
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Page 8
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Page 9
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Result:
Page 10
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
1. SQL Server Business Intelligence Studio -> Project: “WinCC Reports” -> “Data” Tab
Page 11
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Page 12
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Page 13
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Category groups:
The time must be added.
In the Expression and Label, add:
“=Fields!Timestamp.Value”
Series Groups:
One line for each Process tag:
Add the Expression and Label:
“=Fields!ValueID.Value”
Page 14
Exercise 2: Add new report for Alarm and Tag
Logging data with graphical objects
Add a new report for WinCC Alarm Logging and Tag Logging data
Task:
1. Create a new Shared Data Source
2. Add a new Alarm Report to the previously created Reporting project
3. Add another Dataset for multiple TagLogging tags (new query string)
4. Add a Chart and assign parameters
Result:
Page 15
SQL Reporting Services Exercise
Overview
E1: Reporting Wizard
E2: AlarmLogging & TagLogging Report
E3: UserArchive Report
E4: Reports with Parameter
E5: Report Subscriptions
Page 16
Exercise 3: Reporting of User Archive data
Task
1. Create a Report for WinCC User Archive data
2. Add parameters to the Report
Page 17
Exercise 3: Reporting of User Archive data
Task
1. Create a Report for WinCC User Archive data
2. Add parameters to the Report
Result:
Page 18
Exercise 3: Reporting of User Archive data
Task
1. Create a Report for WinCC User Archive data
2. Add parameters to the Report
Page 19
Exercise 3: Reporting of User Archive data
Task
1. Create a Report for WinCC User Archive data
2. Add parameters to the Report
Page 20
Exercise 3: Reporting of User Archive data
Task
1. Create a Report for WinCC User Archive data
2. Add parameters to the Report
Result
Page 21
SQL Reporting Services Exercise
Overview
E1: Reporting Wizard
E2: AlarmLogging & TagLogging Report
E3: UserArchive Report
E4: Reports with Parameter
E5: Report Subscriptions
Page 22
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
Page 23
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
Page 24
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
3. Edit the Report DATA and Layout to add the query with parameters
Delete the old Query, Copy and paste the new query
Page 25
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
3. Edit the Report data and LAYOUT to add the query with parameters
Delete the “Dummy” table
Preview
Enter Parameter Value: 2-5
Page 26
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
Page 27
Exercise 4: Create a report with parameters
Task:
1. Create a shared data source for the Linked Server
2. Create a Report with a Dummy Query
3. Edit the Report DATA and LAYOUT to add the query with parameters
4. Add navigation to Reports
Page 28
SQL Reporting Services Exercise
Overview
E1: Reporting Wizard
E2: AlarmLogging & TagLogging Report
E3: UserArchive Report
E4: Reports with Parameter
E5: Report Subscriptions
Page 29
Exercise 6: Create Subscriptions
Task:
1. Open Report Manager Web Server in Internet Explorer: http://ES/Reports
2. Open the report for which you want to make a subscription
3. Create a “New Subscription”
4. Configure the subscription parameters: Delivery options and Schedule definition
5. Check Outlook Express for the received report
4. Subscription Parameters:
Report Delivery Options:
Delivered by: E-Mail
To: MrReport@ES
Other parameters Default Values.
Page 30
Exercise 6: Create Subscriptions
Task:
1. Open Report Manager Web Server in Internet Explorer: http://ES/Reports
2. Open the report for which you want to make a subscription
3. Create a “New Subscription”
4. Configure the subscription parameters: Delivery options and Schedule definition
5. Check Outlook Express for the received report
4. Subscription Parameters:
Subscription Processing Options:
Click “Select Schedule”
Shedule Details: Day, “Tue”,
“Actual Start Time”
Start and end dates: Begin on : “Actual Day”
Page 31