Support our 100% FREE Projects: Donate Now OR Sponsor Now


  

ssrs create reports

This tutorial shows you how to create a simple report in SSRS.

Note: We have video version of this tutorial. Please click the button below otherwise scroll down to read text based tutorial.

Subscribe to me on YouTube

First we need to create new SSRS Project. Open Business Intelligence Development Studio (BIDS) from start // All programs.

Select File Menu // New // Project…



New project window should appear. Ensure you have Business Intelligence Projects selected on the left side (Project types). Select Report Server Project from templates window.
Type name, select location, Solution Name usually is the same as project name and should be updated when you type project name (name text box). Click ok to create new SSRS project.

 

 

Now that you have new SSRS Project created you should be able to view its content in solution explorer pane which is usually located on the right side (If you displayed than click view on the main menu and click solution explorer).

Next step will show you how to setup Shared Data Source.
Data source contains a connection string which is used to connect to your source of data which in SSRS is usually a SQL Server database. "Shared" just means you can re-use it for different reports.

To set up shared data source in Solution Explorer pane right click "shared data soruce" and click "Add new data source".

We should see Shared Data Source Properties window, change Name and click Edit button which will display "Connection Properties" window. In here you need to specify server name ( in this case is localhost which is default installaton name and instead of typing localhost we use shortcut which simply a dot "." without quotes).
We will use UserWindowsAuthentication (you could use SQL authentication if you have SQL (not windows) username/password) next go to Select or enter a database name. If previous options are set correctly and you have permissions and connectivity this drop down box should show you available databases.
Once you select database in our case tutorial we can double check connectivity by clicking TestConnection button and if is ok then select OK button.

We can see that the connection string is auto generated using our input from previous window. Click ok to finish creating the shared data source.

In Solution Explorer you should see your new Data Source which in my case is called “DevelopingASimpleReport”.

 

 

Now we can Add New Report. In solution explorer right click reports folder and select Add, and than New Item.

NOTE: "Add New Report" (with *) also allows you to create a report but using an SSRS wizard which we won't be using in this tutorial. My best practice recommendation is to create report templates and then copy/paste into new report. You will save yourself a lot of repetitive work.

 

In "Add New Item" window we have two options to create Report we can just select Report or use Report Wizard.
In this case I will use Report item (without wizard)
At the bottom we need to type report name

Now we can see that the report was created and opened in design view.

NOTE: We use SSRS 2008 R2 which is similar to 2008 and 2012 but is different to 2005 version.

 

Now we need to create Data Set. A dataset contains Query String (in our case SQL query) which is executed at run-time and results are stored in the dataset and used by the report.

To create new data set open "Report Data" pane if it is not there use view menu. Right click datasets folder and click Add Dataset


 

In the Dataset Properties fill in dataset name and click New button next to "data source" drop down box.

 

Data Source properties window is displaying and now we can use our shared data source that we created at the beginning by select it in "Use shared data sourced reference" drop down box. Click ok.

 

Once that is ready select Query Designer to setup query string.

Into Query Designer put your sql and click  ok. (SQL Editor can help you generate your SQL query)

 

Make sure if you have Name typed and you selected right Data source which we added in previous step and you can see your SQL query.

Then click OK.

 

Finally we can see that your Dataset is visible in Report Data pane which the fields we selected.

 

Your Data Set is ready. Now we can create simple report table. To do this please open Toolbox (use view menu or icon on toolbar).

and drag and drop text box and table item into design area.

 

To place our fields from data set we can drag and drop the field or click on empty cell and in the right top corner a small rectangle schould appear; click one of the fields and it will appear in the report table.

 

You can format the table by selecting a cell or entire row or column. Right clicking and going to properties. To view all avialable properties select a cell (row or column) and press F4 which will display properties pane.

 

Finaly to run the report click preview tab

See below the end result.

 

I hope that helped you in desinging your first simple report using SSRS. I hope to add more tutorials soon.

Katie 



 

Share: Share on FacebookShare on Google PlusTweet it
Comments Add Comment
Name: John Jebastin
Comment:

Very useful tutorial and is very easy to grasp.


Date Posted: 22/02/2012 12:53:14 PM

Name: goutham
Comment:

Thanks for the help


Date Posted: 23/02/2012 9:16:34 AM

Name: Pradeep
Comment:

nice tutorial to learn abt SSRS...


Date Posted: 27/02/2012 7:54:52 AM

Name: vikram mahit
Comment:

ossum


Date Posted: 27/02/2012 9:37:26 AM

Name: Ajanta
Comment:

Fantastic article, it really helps a beginner to kickstart


Date Posted: 06/03/2012 11:48:10 AM

Name: r
Comment:

nice.


Date Posted: 07/03/2012 9:17:31 PM

Name: shilpa
Comment:

Thanks


Date Posted: 08/03/2012 4:53:36 AM

Name: arul
Comment:

we can this concept to understand and  work


Date Posted: 13/03/2012 12:45:02 PM

Name: Ashfaq
Comment:

Very Very simple and best visual examples provided, keep going


Date Posted: 15/03/2012 8:51:42 AM

Name: Dileep
Comment: Mo
Date Posted: 03/04/2012 12:49:51 PM

Name: Dileep
Comment:

became more useful to me..

good work..

Excepting more tutorials..


Date Posted: 03/04/2012 12:51:02 PM

Name: suri
Comment:

this helps me to start ssrs with comfortable, good explanation.

thanks.


Date Posted: 12/04/2012 5:59:03 AM

Name: Anandh
Comment:

good for beginners


Date Posted: 16/04/2012 4:52:12 AM

Name: Rohit
Comment:

Thanks for the article. This was helpful


Date Posted: 18/04/2012 9:58:13 AM

Name: mvr210
Comment:

Thank you for maiking my first experiance easy. You doing a great job with providing these instructions !!!


Date Posted: 14/05/2012 10:21:09 PM

Name: Gengiti.SainathYadav
Comment:

Really nice.. Easy to understand.

 


Date Posted: 17/05/2012 10:23:20 AM

Name: Qaiser
Comment:

This simple tutorial has urged me to learn more about SSRS. So nice & thanks


Date Posted: 22/05/2012 6:07:08 AM

Name: Harshal
Comment:

Thank you for maiking my first experiance easy. You doing a great job with providing these instructions !!!


Date Posted: 28/05/2012 9:56:30 AM

Name: SuJo
Comment:

Great first simple report produced...nice and simple from a good tutorial..

 


Date Posted: 13/06/2012 1:53:19 PM

Name: Baskar M
Comment:

Good job


Date Posted: 14/06/2012 6:32:47 AM

Name: reza ahmad
Comment:

Keepit Up


Date Posted: 29/06/2012 11:15:58 AM

Name: Vinod
Comment:

Great article for all beginners of SSRS  


Date Posted: 04/07/2012 8:47:53 AM

Name: prabu
Comment:

cool.. very useful


Date Posted: 19/07/2012 9:18:26 AM

Name: Anjali
Comment:

explained in detail, very easy to understand


Date Posted: 24/07/2012 3:50:17 AM

Name: raj
Comment:

wheater it is sql server 2008 or 2005 bi, because am not getting 'shared dataset' , am using sql server 2008 bi


Date Posted: 28/07/2012 10:48:48 AM

Name: Emil
Comment:

Hi Raj,

Shared Dataset is a new feature introduced in SQL Server 2008 R2. Also I'm not sure about BI. I think you don't refere to BI Edition which was introduced in SQL Server 2012?

Regards

Emil


Date Posted: 28/07/2012 2:13:31 PM

Name: ashok
Comment:

Nice Article for beginning in SSRS


Date Posted: 08/08/2012 7:17:35 AM

Name: Devesh
Comment:

short and simple tutorial.
it was awesome

 


Date Posted: 14/09/2012 6:48:40 AM

Name: khushboo
Comment:

That is very nice and easy to learn.

Thanks.


Date Posted: 27/09/2012 4:08:38 PM

Name: S.Sivaramakrishnan
Comment:

An Easiest way to learn SSRS ...


Date Posted: 28/09/2012 9:28:17 AM

Name: raghu
Comment:

this is really a nice article..it helped me a lot..thanx for sharing this...any materials or links about ssrs2008 plz mail me@  raghu.riims@gmail.com is greatly welcome...


Date Posted: 18/10/2012 6:00:58 AM

Name: Tarun Kumar
Comment:

Nice, simple and easy to learn.


Date Posted: 02/11/2012 12:05:35 PM

Name: bharath
Comment:

sir please send me the ssrs,ssis,ssas with sql materials from begining for my mail id with complete and clearence.

Thanks & Regards,

S.N.BHARATH.


Date Posted: 16/11/2012 12:00:22 PM

Name: maha
Comment:

nice:)


Date Posted: 22/11/2012 6:07:37 AM

Name: Gourav Joshi
Comment:

Thanks a lot ,Good Explanation...


Date Posted: 22/11/2012 3:40:30 PM

Name: Ganesh
Comment:

Dear sir,

         How to send present date report dailly  at specific time to a person mail id ,

with ssrs, what are the configuration have to set , and which mail id i have to use for from..

 

Thanks,

 Ganesh.G


Date Posted: 30/11/2012 9:29:05 AM

Name: Irfaaz Ismail
Comment:

Very simple yet very useful tutorial. Thanks


Date Posted: 02/12/2012 9:31:21 PM

Name: satish
Comment:

gud wrk...


Date Posted: 14/12/2012 12:44:46 PM

Name: Anand
Comment:

Simply Superb


Date Posted: 24/12/2012 10:07:37 AM

Name: Bobby
Comment:

Very useful


Date Posted: 01/01/2013 1:16:59 AM

Name: Naresh
Comment:

Very nice article for biggners


Date Posted: 08/01/2013 6:20:03 AM

Name: Dileep
Comment:

could you please make another tutorial for a chart based reports as well? something like pie chart, or a bar graph, etc.. 


Date Posted: 08/01/2013 11:01:47 PM

Name: Vijay
Comment:

Nice Post ... Simple and Useful


Date Posted: 15/01/2013 9:14:50 AM

Name: Vinoth
Comment:

Very Nice Post ....


Date Posted: 23/01/2013 9:43:04 AM

Name: Henrik
Comment:

Bravoooo!!!


Date Posted: 24/01/2013 10:04:54 AM

Name: Nihal Ahmed Khan
Comment:

Very Very simple and best visual examples provided. Very Nice Sir....


Date Posted: 05/02/2013 7:24:30 AM

Name: Rekha Menon
Comment:

Nice starter for beginners...


Date Posted: 08/02/2013 4:08:06 AM

Name: Shav
Comment:

Thanks for your help..


Date Posted: 20/02/2013 3:12:06 PM

Name: Neeraj Nema
Comment:

Thanks Katie and Emil. this is really explanatry for a beginner like me. Hope this will give me a good start.


Date Posted: 11/03/2013 4:14:03 PM

Name: yellamaraju
Comment:

Just started to go through the tutorial...but, can't wait to post the comment..."looking nice for fresher...."


Date Posted: 13/03/2013 11:17:18 AM

Name: Sami
Comment:

Awesome, Really very nice and step by step detail actaully help me to understand SSRS. Please keep the good work


Date Posted: 17/03/2013 5:27:27 AM

Name: Ram Charan Tej rRagi
Comment:

Nice one... Easy for beginners..


Date Posted: 21/03/2013 4:59:45 AM

Name: aaku
Comment:

Nice Job good n i hope u will update more tutorials soon !!!! plzzzzzzzzz its me waiting for more....


Date Posted: 03/04/2013 4:39:21 AM

Name: Rakesh Chowdary
Comment:

Katie.....U rock....It was really awesome.....I bookmarked this site......really i find this site  very useful....I am searching a site like this....Finally i got it...:)


Date Posted: 30/04/2013 4:49:41 AM

Share your thoughts, questions and suggest improvements:
Add Comment

You found us! Below are 50 most popular searched keywords

created at TagCrowd.com

Disclaimer: While every caution has been taken to provide our readers with most accurate information and honest analysis, please use your discretion before taking any decisions based on the information in this blog. Author will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.