ssrs create reports
This tutorial shows you how to create a simple report in SSRS.
Select File Menu // New // 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. 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 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.
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
|
News & Updates: Follow @katieglowniaFollow @emilglownia
| You like it? Share it! |
Comments Add Comment
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
Add Comment
