Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

190916 FM-BINUS-AA-FPT-66/R6

Soal Praktikum
Practicum Case

ISYS6119
Database Administrator
Teknik Informatika E1-ISYS6119-DF02
Computer Science
Periode Berlaku Semester Ganjil 2016/2017 Revisi 00
Valid on Odd Semester Year 2016/2017 Revision 00

Learning Outcomes
 Create Reporting Service Administration

Topic
 Session 11 – Reporting Service Administration

Sub Topics
 Introduction to SSRS
 Setup Reporting Services server
 Email setting
 Managing Report Manager
 SQL Server Reporting Service

Halaman : 1 dari 17
Page 1 of 17
190916 FM-BINUS-AA-FPT-66/R6

Tutorial
Tutorial

INDBook
MsCustomer HeaderSales MsEmployee

PK CustomerID PK SalesID PK EmployeeID

CustomerName FK1 EmployeeID EmployeeName


CustomerAddress FK2 CustomerID EmployeeAddress
CustomerEmail TransactionDate EmployeeEmail
CustomerPhone EmployeePhone
EmployeePosition
FK1 BranchID

MsNovel DetailSales MsBranch

PK NovelID PK,FK1 SalesID PK BranchID


PK,FK2 NovelID
NovelTitle BranchName
NovelStock Quantity BranchAddress
NovelPrice BranchPhone

There are many ways to create a report from database; one of the ways is by using a Business
Intelligence program. Today, we want to learn about how to make a report using Business Intelligence
program. You can open the program by click:
Start  All Programs  Programming  Microsoft  Microsoft Visual Studio 2010 – Business
Intelligence  Microsoft Visual Studio 2010

Halaman : 2 dari 17
Page 2 of 17
190916 FM-BINUS-AA-FPT-66/R6

Choose your default environment settings to Business Intelligence Settings

Halaman : 3 dari 17
Page 3 of 17
190916 FM-BINUS-AA-FPT-66/R6

Create New Project:

Halaman : 4 dari 17
Page 4 of 17
190916 FM-BINUS-AA-FPT-66/R6

Create Report Server Project Wizard in the Reporting Services menu:

Click Next > Button:

Halaman : 5 dari 17
Page 5 of 17
190916 FM-BINUS-AA-FPT-66/R6

Create connection string to connect to database by clicking Edit… Button:

Halaman : 6 dari 17
Page 6 of 17
190916 FM-BINUS-AA-FPT-66/R6

Fill the Server and database name, and then check the connection by clicking Test Connection Button:

Halaman : 7 dari 17
Page 7 of 17
190916 FM-BINUS-AA-FPT-66/R6

Click Next > Button:

Halaman : 8 dari 17
Page 8 of 17
190916 FM-BINUS-AA-FPT-66/R6

Fill the Query string Text Area with the query to select the data from database:

For the example is query to display book sales report based on the customer’s name, the book title, and
months of the sale transaction:
select CustomerName, NovelTitle, SalesMonth=MONTH(TransactionDate), QtySum=SUM(Quantity)
from MsCustomer mc
join HeaderSales hs on mc.CustomerID=hs.CustomerID
join DetailSales ds on ds.SalesID=hs.SalesID
join MsNovel mn on mn.NovelID=ds.NovelID
group by CustomerName, NovelTitle, MONTH(TransactionDate)

Halaman : 9 dari 17
Page 9 of 17
190916 FM-BINUS-AA-FPT-66/R6

Testing the query result in SQL Server Management Studio to make sure the query is running
successfully, before copying to the Query string Text Area and then press the Next > Button:

Select the type of report that you want (tabular or matrix):

Image 1 Tabular Example Image 2 Matrix Example

Halaman : 10 dari 17
Page 10 of 17
190916 FM-BINUS-AA-FPT-66/R6

Design the table displayed fields:

Image 3 Grouping data in the tabular method example Image 4 Grouping data in the matrix method example

Choose the table layout:

Halaman : 11 dari 17
Page 11 of 17
190916 FM-BINUS-AA-FPT-66/R6

Choose the table style:

Choose the deployment location:

Halaman : 12 dari 17
Page 12 of 17
190916 FM-BINUS-AA-FPT-66/R6

Give the name of the report and then click Finish Button:

You can see the report result in the Preview Tab:

Halaman : 13 dari 17
Page 13 of 17
190916 FM-BINUS-AA-FPT-66/R6

Here is the example report result:

Image 6 Report result tabular version with drilldown structure

Image 5 Report result tabular version without drilldown


structure

Image 7 Report result matrix version

Halaman : 14 dari 17
Page 14 of 17
190916 FM-BINUS-AA-FPT-66/R6

To create the other report, you can do the right click in the Reports Folder in the Solution Explorer 
Add New Report:

Halaman : 15 dari 17
Page 15 of 17
190916 FM-BINUS-AA-FPT-66/R6

INDBook
MsCustomer HeaderSales MsEmployee

PK CustomerID PK SalesID PK EmployeeID

CustomerName FK1 EmployeeID EmployeeName


CustomerAddress FK2 CustomerID EmployeeAddress
CustomerEmail TransactionDate EmployeeEmail
CustomerPhone EmployeePhone
EmployeePosition
FK1 BranchID

MsNovel DetailSales MsBranch

PK NovelID PK,FK1 SalesID PK BranchID


PK,FK2 NovelID
NovelTitle BranchName
NovelStock Quantity BranchAddress
NovelPrice BranchPhone

1. Create the jobs report using matrix version that displays the employee name and count of
transaction that’s served by the employee per year.
2. Create the sales report using tabular version with drilldown structure that displays the customer
name and count of transaction per year.
3. Create the sales report using tabular version that displays the novel title and total quantity that sold
per month.
4. Create the sales report using matrix version that displays the novel title and total quantity that sold
per month for each branch.
5. Create an income report using tabular version that displays the total novel price that sold per
month and year.

Halaman : 16 dari 17
Page 16 of 17
190916 FM-BINUS-AA-FPT-66/R6

Referensi
Reference
https://msdn.microsoft.com/en-us/library/aa337424(v=sql.110).aspx

Halaman : 17 dari 17
Page 17 of 17

You might also like