Вы находитесь на странице: 1из 31

Tabular Report Using SSRS

Created By :Gaurav Shrivastava


Reviewed By: Amit Sharma
Contact Point :bisp.consulting@gmail.com
Content
ØConnect Management studio
ØCreate Database
ØAttach Database
ØSteps To Create a Report
ØCreating Reporting Project
ØBusiness Query
ØCreate Query
ØCreate Data Model
ØReport Formatting
ØReport Deployment
How to connect Management studio to the server?
Open SQL Server Management Studio you will get wizard as shown in
image 1.
Image 1à Select server type, Server Name and authentication mode
Click on connect.
Image 2à Other option to connect with database click on Connect
dropdown list. Select the server which you want to connect.
1

2
Connect Management Studio to the server
There are some other ways to connect management studio to the
server. Right click on the connected server and you will get same
“Connected to server” wizard. Image 2 shows that database server,
analysis server and report server are connected.

2
1
Create Database
You should know how to create database in SQL Server 2008.
Database is a collection of views, Tables and stored procedures.
Create a database in side that create required tables.
Create Database
Image 1àYou can give database name click ok.
Image2àYou can find new database “BISPDB” in SQL Server
database.

2
1
Create Database
Image 1à Right click on tables and create New Table.
Image 2àYou can see How to create Table? Give Field Nameà Data
type (Size) à Allow Null or not. In property window you can
change properties according to need.

1
Attach Database
If already have a database you just need to attach existing database to
the server.
Image 1à Right Click on database à Attach
Image 2à Click Add.
2

1
Add Database
Image1à Select your database click ok.
Image2à If you want to add other database you can repeat same
process again.

2
1
Database
You can see that required database get attached with database
server. In management studio you can add columns, delete
columns and modify them. You also can add, delete and modify
new tables into database. You can customize database properties.

Now You have database for creating reports.


Steps To Create a Report
Step1à Open “BIDS” select report project template give name
to project.
Step2à Create a data Source.
Step3à Create one or more report data sets.
Step4à Design the report layout.
Step5à Add and configure report parameters
Step6à Use the preview tab on the report designer to preview
the report.
Creating Reporting services Project
Image1àOpen Business Intelligence Development Studio à Fileà
New Projectà ”Report Service Project”. Give the name to Report
Project you can change project location. Click OK
Image2àIn solution Explorer you will have report server project and
two subfolder. “Shared data sources” folder will keep datasource.
“Reports” folder will keep your reports. One project can have one or
more data sources one data source may have one or more reports.

1
2
Business Query
Queryà Company manager want list of product those unit sale is
more then 3000, there store type amount of sale in last two year.

Solutionà You need to create a list report on the bases of available


data. First you should have required database. Then fallow the report
creation steps and build report based on query.
Create Connection String
Image1à Right Click on “Shared Data Source”à “Add New Data Source”.
Image2à Give Name to datasource. Select type of data source. You can
type connection string or click on “Edit” properties.
Image3à Select your server name, select authentication mode and
select required database test connection then click ok.

1 3

2
Datasource Connection String
Data source connection string will come in to connection string box.
Connection string will help to connect database with the server.
Create Report
Image1àRight click on Reports and create new report.
Image2àYou already select your data source type and database
connection string so default setting makes them inaccessible. If you go
for “New data source” you will able to access them. You can select
shared data source from available “data source folder”.

2
1
Create Query
Image1à Image shows the area where you can write query. You can use
“Query Builder” to build query in easy way.
Image2àImage shows query builder. You can add required tables
according to query from shared data source.

1
Create Data Model And Query
Query builder divided into four parts
Part1à Create Data Model, Star and snowflake models are best to fetch data from data
base. Shown data model is snowflake.
Part2à It helps to build query quickly in graphical manner.
Part3à You can directly write query in this part.
Part4à It shows resulted Output.
Build Query
Image1à Now query string have required Click on next.
Image2à You can select which type of report you want.

1 2
Design of Report
Image1à You can design report view. There is three option to set report
appearance. “Page” you can add those fields which will come in the top of your
report page. If you want to create groups in your report. You can use group
option. Detail area will keep detail fields. Click next.
Image2à You can choose table style of report. Click on next.

1
2
Report Layout
Image1à Give the name to report which will easy to understand.
Image2à This is local report viewer where you can preview your
report. There is two tabs one in design your report. You can do
formatting as change color, fonts, add fields, remove fields etc.

1
Report Formatting
Design tab allow you to do formatting as you like to view your
report. Right Click on column, you will have expression, add total,
text box properties and other option for formatting.
Text Box Properties
Image1àImage shows How you can change value of textbox.
There are other general option available as “tool tip” and “sizing”.
Image2à Image shows font properties.
Similarly other properties works.
1 2
Formatting Properties
Image1àImage shows How to add new column in your report.
Image2àImage shows How to add parent group child group in report.
Image3àImage shows How to use aggregation functions in report.

3
1

2
Formatting Properties
Below image shows formatted design view of report. You can see
that total of unit sales and amount sales in the design view.
Report Deployment
When you finish all tasks as report building, add aggregation and
all formatting of report. You can deploy your report on web. You
need to set your “TargetServerURL” . Set path of server where
you want to deploy your report.
Ex:- “http://localhost/reportserver”
Click ok
How to deploy report?
In Solution explorer view Right click on report project and click
on deploy. Output view will show you resulted output of project
deployment. It also shows where your report get deployed.
Deployed Report
This is deployed view of project which shows one deployed
report folder and deployed datasource folder.
This is home page of report services site.
Report
Actual reports reside inside the report folder. There are two
reports click on “Product details which has unit sale more then
3000”
Deployed View of Report Project
This is final deployed view of report. There is some inbuilt
features are available in site as find, take print out and export
report into desired format.
THANK YOU

To learn more about MSBI please visit


http://bispsolutions.wordpress.com

Вам также может понравиться