Skip to main content

SSRF CONFIGURTION


If this is your first time creating an SSRS report, then this is the right article for you. Below is a step-by-step guide that will help you to create, deploy and view your first report using SQL Server Reporting Services 2008:
Environment Check
Assuming the following are installed and already configured on your machine:
  • Installed SQL Server 2008 R2
  • Installed AdventureWork Sample Databases
    (You can visit Microsoft website to download and install it:
    http://msftdbprodsamples.codeplex.com/releases/view/55926
    We are using it in this case as a sample database. However, you can write any SQL statement on one of your pre-installed Databases)
  • Installed SQL Server 2008 Reporting Services
    (If you have not done this, visit this post: SSRS 2008 Installation Guide)
  • Both SQL Server and Reporting Services are installed on the same machine (localhost)
Now we can start the guide walk-through:
1. Open SQL Server Business Intelligence Development Studio (BIDS) by going to:
Start > All Programs > Microsoft 2008 R2 > BIDS
2. From the menu, choose File > New > Projects
image
3. Choose the right template: Report Server Project and type in name of the Project:
image
4. If this is your first time creating a report, then we do need to setup the path where some of the reports are stored while deploying. (We only need to do this once) So, right click on the project name from your Solution Explorer window (on the right side) and choose Properties.
image
5. I would normally leave the settings as default EXCEPT you need to add the value for parameter TargetServerURL which is blank:
image
6. Normally, the Report Server URL is: http://localhost/ReportServer
You can check this by going to: Start > All Programs > SQL Server 2008 R2 > Configuration Tools > Reporting Services Configuration Manager. Then, from left menu choose Web Sever URL and under Report Server Web Service URL, you will find the address which is setup. You can always replace the long ugly machine name with localhost:
image
7. Type in the Server URL and click OK:
image
8. Now, we begin to add Reports to our project. To do this, right click on Reports folder and choose Add > New Item:
image
9. Type in the name of your report: ContactList.rdl and click Add
image
10. Report Wizard will start. Although, you can create report manually without wizards, for the purpose of this first exercise we continue with the wizard. Click Next:
image
11. Every report need a DataSource to know which database to connect to. As this is the first time, we have to create this. Click on Edit:
image
12. Type in Server Name: localhost. I have setup the SQL Server to accept Window Authentication. Otherwise, enter SQL Server Authentication:
image
13. Choose the database that you want to work with and click OK to finish:
image
14. Now that we have created the connection string, click on Next to continue (note that you also tick the box Make this a shared data source to use for future reports):
image
15. In the next step, it will ask to to type in the Query String. There are two ways of doing this, either use Query Builder or write in your own code. I prefer the later, so I have opened SSMS and wrote my select statement which return the result that I have to use in my report. I will also run it to make sure the syntax is connect. Copy the code to the clipboard:
image
16. Page the code in the Query String and click Next:
 1: SELECT
 2:     Title,
 3:     FirstName,
 4:     LastName,
 5:     EmailAddress,
 6:     Phone
 7: FROM Person.Contact
 8: WHERE Title IS NOT NULL
image
17. Depending on the report choose the type. This is a simple basic report so we are going to use Tabular. Click Next:
image
18. In this step, the wizard allows you to do Grouping but for the purpose of this exercise, we will have a simple report that return lost of all names. Also, we have already specified the columns that we want in our SELECT query; therefore, we want to select all the available fields and click the Details button to move them to the Details section:
image
19. We can see all fields are in the Details section. Click on Finish:
image
20. You can type in or change the name of the report and click Finish to end:
image
21. We can see the report is now created. To view the report click on Preview tab:
image
22. The preview Tab will run and render the report to see the outcome result:
image
23. So, now that we have created the report and preview it, we can need to Deploy it to the Report Server so that it can be viewed and accessed by end-users. To do this, right click on the report file (ContactList.rdl) and choose Deploy:
image
24. Remember that we have to setup the Target Report Server URL correctly before deploying. If all is done correctly, we will see the successful message in the Output result dialog box. This is a confirmation that the report has successfully built, deployed and ready to be viewed:
image
25. To view the report which has just been deployed, open IE browser and type in: http://localhost/Reports
This is the address where all Reports are deployed and can be accessed by end-user. We can also see that reports are in a Folder structure similar to Window Files. Click on MyFirstReport folder:
image
26. And finally to view the report, click on ContactList:
image
27. Here is the report displayed on your web-browser:
image
28. Finally, a very useful feature of SSRS reports is the ability to export them into PDF, Excel, or Word:
image

Share this:

Comments

Popular posts from this blog

Editing Child GridView in Nested GridView

Editing Child GridView in Nested GridView In this article we will explore how to edit child gridview in the nested gridview.   Let''s write some code. Step 1:  Add scriptmanager in the aspx page. < asp : ScriptManager   ID ="ScriptManager1"   runat ="server"   EnablePageMethods ="true"> </ asp : ScriptManager > Step 2:  Add below stylesheet for modal popup. < style   type ="text/css">        .modalBackground        {              background-color : Gray;              filter : alpha(opacity=80);              opacity : 0.5;       }        .ModalWindow        {              border : solid1px#c0c0c0;              background : #f0f0f0;              padding : 0px10px10px10px;              position : absolute;              top : -1000px;       } </ style > Step 3:   Create an aspx page and add a Gridview with another gridview in the last TemplateField. The last templatefield will also contain a lable which will

Nested GridView Example In Asp.Net With Expand Collapse

This example shows how to create Nested GridView In Asp.Net Using C# And VB.NET With Expand Collapse Functionality. I have used JavaScript to Create Expandable Collapsible Effect by displaying Plus Minus image buttons. Customers and Orders Table of Northwind Database are used to populate nested GridViews. Drag and place SqlDataSource from toolbox on aspx page and configure and choose it as datasource from smart tags Go to HTML source of page and add 2 TemplateField in <Columns>, one as first column and one as last column of gridview. Place another grid in last templateField column. Markup of page after adding both templatefields will like as shown below. HTML SOURCE 1: < asp:GridView ID ="gvMaster" runat ="server" 2: AllowPaging ="True" 3: AutoGenerateColumns ="False" 4: DataKeyNames ="CustomerID" 5: DataSour

Add Edit Update Records in GridView using Modal Popup in ASP.Net

Add Edit Update Records in GridView using Modal Popup in ASP.Net In this article, I’ll explain how to Add and Edit records in ASP.Net GridView control using ASP.Net AJAX Control Toolkit Modal Popup Extender. Database For this tutorial, I am using Microsoft’s NorthWind database. You can download it using the following link. Download Northwind Database Connection string Below is the connection string to connect to the database. < connectionStrings >     < add name = " conString "      connectionString = " Data Source=.\SQLExpress;database=Northwind;     Integrated Security=true " /> </ connectionStrings >   HTML Markup Below is the HTML Markup of the page. Below you will notice that I have placed a Script Manager and an ASP.Net Update Panel on the page. Inside the Update Panel I have placed an ASP.Net GridView Control along with a Modal Popup Extender that will be used to Add or Edit the records in the GridView