Av rating:
Total votes: 365
Total comments: 168


Steve Joubert
Beginning SQL Server 2005 Reporting Services Part 1
24 August 2006

Building and deploying basic reports

If ever there was job for "real" developers to shuffle to their juniors, it is building reports. It's not real development anyway; it's more like glorified formatting. Besides, the esoteric tools that you use to build reports try to provide an abstraction layer, which often prevents you from having any real control over the report. I've heard all these arguments before. If this sounds like a conversation you've had by the water cooler, then I invite you to take a closer look at SQL Server 2005 Reporting Services (SSRS).

SSRS 2005 is the latest version of SQL Reporting Services, and ships with all versions of SQL Server 2005. SSRS allows you to quickly and easily create reports from multiple database sources. The finished reports can be presented directly from the reporting services website, or they can be displayed in your web- or Windows-based applications. Reports can be exported to multiple formats, including comma delimited text, XML, portable document format (pdf) and Microsoft Excel.

This article is the first of four parts, which will provide in-depth coverage of SQL Server 2005 Reporting Services:

  • Part 1 covers the basics of the SSRS. It demonstrates how to build quick, simple reports and will familiarize you with the basic Report Designer environment
  • Part 2 will cover use of custom functions, aggregate functions, sub-reporting, the matrix control, drill-downs, and sorting.
  • Part 3 will take an in-depth look at the charting control
  • Part 4 digs into the actual Report Definition Language (RDL) and the new Report Builder tool.

Installing and configuring Reporting Services

After much debate, we decided that full installation and configuration details were outside the scope of an article focused on how to build basic reports using SSRS, especially as there are already several online resources that treat this area in detail. See, for example:

http://msdn2.microsoft.com/en-us/library/ms143736.aspx

and

http://www.awprofessional.com/articles/article.asp?p=357694&seqNum=1&rl=1

Well worth reviewing are the details in the latter on the need to install SSL on any machine hosting SSRS.

---Editor's installation notes---
In order to test the reports in this article, I went through a single-machine installation on Windows XP (meaning that SQL Server 2005, Reporting Services, and much more, are all installed on my poor laptop). Since I didn't install SSRS when I installed SQL Server 2005 (I didn't have IIS installed at the time), I had to first install IIS 5.1, and then Reporting Services (from the SS2005 disks). I then jumped immediately into Reporting Services Configuration Manager tool (All Programs ¬ SQL Server 2005 ¬ Configuration tools). The left panel acts as a sort of checklist of items to configure:

All went well until the Database Setup. Because I had not installed SSRS at the same time that I installed SQL Server, the ReportServer and ReportServerTempDB were not created by default. These databases hold all the report definitions and reporting server configuration information. Connecting to SQL Server using Service Credentials, the databases appeared to be created, but I received an error suggesting that I didn't have permissions to perform the requested task, and a red cross remained next to the Database Setup icon. This had me stumped for a while – eventually I appeared to solve it by hopping to the Server Status section, stopping the Report Server, opening SSMS and deleting both the ReportServer and ReportServerTempDB databases, and then restarting the Report Server and trying again! Even though I swear this didn't work the first time I tried it, it seemed to do the trick the second time (while I was on the phone moaning to Steve that I couldn't get it to work!). However, I'm still not clear why I had the problem in the first place – or why it suddenly went away.

This wasn't quite the end of my problems. Installing SSRS creates two new virtual directories under the default website on IIS. By default, they are named Reports and ReportServer. The ReportServer site hosts a web service for running and managing reports. The Reports site allows you upload reports from a browser and run reports over the web. When I tried to navigate to http://localhost/ReportServer I received the following error: "Failed to access IIS metabase". Fortunately, the information on the error page is quite useful (for a change) and this, coupled with a quick Google search, led me to grant access to the metabase to the ASPNET user account by executing the following from the directory housing the aspnet_regiis executable (WINDOWS\Microsoft.NET\Framework\v2.0.50727, in my case):

aspnet_regiis -ga ASPNET

This did the trick, and I was up and running. I received some raised eyebrows here when I proposed to install SSRS. It made my long-suffering sys admin team particularly nervous. The 2000 version of SSRS seems to have a very bad reputation among the Red Gate team, both as a performance nightmare, and in one case for "completely annihilating" a developer's machine. However, the above slight quirks aside, the SSRS 2005 experience seems pretty smooth and I've had no real performance, or other, issues. So far.
-----End of Editor's note----

Once you've completed the installation and configuration process, the first thing to do is download the code file for this article (see the Code Download link in the speech bubble to the right of the article title). The code file contains a sample Visual Studio project and a SQL Script for creating the ReportDemo database. You will need this database if you want to follow the examples in this series of articles so go ahead and create the database using the ReportingDemoDatabaseScript.sql script or, alternatively, by restoring the provided ReportingDemo.bak file.

If you are using SQL Server Authentication on your SQL Server you will also need to set up a login with permissions to the ReportDemo database (for the examples, I set up a login called DemoUser as a DBO on my ReportDemo database).

Using the Report Wizard

There are two ways to create SSRS Reports. You can build the report manually, or you can use the Report Wizard to give yourself a head start. For this first report, we are going to take advantage of the wizard. Start a new Business Intelligence project in Visual Studio 2005. Then, from the menu, select Project > Add New Item. Select the Report Wizard option and call the file "FirstReportWZ.rdl". Click Add. Click Next on the Welcome screen and this will bring you to the Select the Data Source screen:

Select the New data source radio button and give the data source a name. Select Microsoft SQL Server as the type.

Note:
Use of the Shared data source option is actually a better option in most cases but, for the sake of this example, we will just create a new data source. We're going to set up a shared data source later in this article.

Click the Edit button to bring up the Connection Properties dialog:

Enter or select a server name. The default is to log on using Windows Authentication. If you are using SQL Server Authentication, choose that setting, and enter the username and password. Finally, select a database, in this case ReportingDemo. Make sure you test the connection before you click OK.

Next up is the Design the Query screen. You can use the Query Builder by clicking the button at the top left, but in this case simply enter "Select * From Customer" into the Query string text box and click Next. On the Select the Report Type simply select the type you prefer (tabular or matrix) and hit Next.

This brings up the Design the Table screen:

Select State in the Available fields box and click the Group button. This will group the data in the result set by State. Select Next. On the Choose the Table Layout page, select the Stepped option and check the Enable Drilldown checkbox. On the next screen, choose a style for your report (I chose Ocean) and click Next.

This brings up the final screen, Completing the Wizard:

It shows a summary of your report options, and gives you an opportunity to rename the report and to preview it. Click Finish to end the wizard.

You should be shown the report in the standard Report Designer:

There are three tabs: Data, Layout and Preview. You should be on the Layout tab. Click on the Preview tab to view the report. Since this report doesn't take any arguments, it will run as soon as you click on the tab.

Use the +/- symbols next to the State abbreviations to expand and collapse the grouping of the report.

Manual report creation

The previous section, while perhaps overly simplistic, does show you how to get a report up and running with zero code and zero property setting. Obviously, such reports will not meet most development requirements, but do not discount this option as a starting point for more complicated reports. Once you've created a report with the Report Wizard, you are free to make any modifications to it.

In this section, we are going to create a more realistic report from scratch, including how to create and use a shared data source object, stored procedures, and how to format your report, set report properties and use report parameters.

Creating a shared data source

Before we start the report, we are going to build a shared data source i.e. a data source that is common to, and can be used by, all of the reports on a reporting server. While each report can contain its own connection information, it is good practice to use shared data sources, as it will save you a lot time and headaches. This way, you only have to set the connection information once. For example, let's say your company has Development, Test and Production environments. If you put the connection information into each report, you will have to change it each time when you publish to Development, Test and Production. If you use a shared data source, you still have to set up a data source object for each of three environments, but you can simply publish the report to each environment, and they will automatically use the connection information associated with that environment.

From the menu select Project > Add New Item > Select Data Source. On the General tab, call the data source "ReportsDB". Leave the Type as Microsoft SQL Server. Click the Edit button on the right, and enter the connection information for Reporting Demo, as before. Click OK on the Shared Data Source screen and the data source is done.

Add a new report

From the menu select Project > Add New Item. Select Report and name it "FirstReportMan.rdl". A new report will be added to the project, and the Report Designer will open at the Data tab. At this point, let's take a closer look at the Report Designer tool. At the top of the Report Designer window are three tabs: Data, Layout and Preview. The Data tab is used to build data sources for your report. The Layout tab is the physical report designer where you set up the header, the footer and the data presentation of the report. The Preview tab allows you to actually run the report from Visual Studio 2005, without having to publish it to a report server first. If your report takes parameters, the Preview tab will ask you to fill them out before it runs the report.

The first thing we need to do is get data into our report. At the top of the Data tab choose <New Dataset…> from the dropdown list:

The Dataset dialog opens:

Name the dataset "ReportData", and select the ReportsDB data source from the dropdown. Select StoredProcedure as the command type, and enter "spr_CustomerSelectAll" in the query string box. Click OK to close the dialog.

Note:

spr_CustomerSelectAll is a very simple, parameter-less stored procedure that selects all of the columns from the Customer table. The source code is included in the ReportingDemoDatabaseScript.sql script with the code download.

Test the dataset by clicking on the big red exclamation point at the top of the report designer. This executes the query and displays the results. You can repeat these steps if you wish to add multiple datasets to your report.

Setting up the report display

Next, switch to the Layout tab. This is where you actually build the report display. Start by dragging a table from the Toolbox, onto the Body section of the report. By default, the table shows a header row at the top, a detail row in the middle and a footer row at the bottom. You can add additional columns to the table by right-clicking on one of the columns and selecting one of the two Insert Column options.

Click on the Datasets tab under Toolbox on the left-hand side of the Visual Studio environment. You should see the ReportData dataset. Expand it, select FirstName and drag it to the first cell of the body row of the table. This will display the First Name field in the first column. Now put the LastName in the second column, and the CustomerStatus in the third:

Note that, when you drag the column FirstName into the body row of the table, SSRS make a guess as to what to call the row. It calls it "First Name". You can click on the Preview tab to view the report.

Adding formatting

OK, so we have a basic, very plain, report. Let's add some formatting to make it look good. Let's add the DateOfBirth column to the table. You can expand and shrink the size of the columns by highlighting and dragging:

If you wish to get rid of the footer row of the table and then click on any field in the table. You will see a grey box surround the table. Right-click on the icon at the beginning of the body row and then click the Table Footer option to deselect it.

The table header is next. To format all the cells in the header in the same way, click and drag over all the cells to select them. Open the Properties window and set background color, font, and so on.

Note, however, that if you wish to change the justification of the text or the size, then you do so using the main menu at the top, not via the properties window. Again, you can click on the Preview tab to view the report.

Add a report header

The table already has a header, but the report can also have a header and footer. Report headers and footers appear on every page of the report. Put the Report Designer in Layout mode and select Report > Page Header from the menu. A new band labeled Page Header appears on the report above the body. Drag a text box onto the header and click directly on it. Type "My First Report", not in the Properties window, but right on the control.

To adjust the text style and size of your heading, highlight the text box and use the option from the top menu.

Formatting

Each field can have formatting. Let's deal with that ugly Date of Birth field. The time information is superfluous, so let's format the date properly. Right-click on the cell that contains the date of birth, and choose Properties. Next, select the Format tab.

Click on the second button (labeled "…") to the right of the Format code field. When the dialog opens, use the standard options. Select Date in the list on the left, then choose the sample date format you want on the right. Click OK to close the dialog.

Click OK to close the Properties window and then click on the Preview tab to view the report.

Setting report properties

To access the report properties, you need to be on the Layout tab of the Report Designer. When you click on this tab, a new menu item, Report, activates. This menu gives you options for turning on and off the report header and footer sections (as we have seen), adding embedded images, setting report properties, and setting report parameters.

Setting up the report print settings is not intuitive, compared to other products. In the report Layout tab you see your report with a ruler across the top. That ruler is set up in inches. A standard sheet of paper is 8.5 x 11 inches. The default setting in SSRS is to have a 1-inch margin all the way around the content area. So, at 8.5 inches wide with a 1-inch margin on the left and another on the right, you have 6.5 inches for content. Any more, and the content beyond the 6.5 inches will spill over onto a second sheet of paper when printed. It will not automatically shift to Landscape.

To get Landscape reports, you have to make the proper report settings. Navigate to the Layout tab of the Report Designer. From the Report menu select Report Properties. Switch to the Layout tab of the dialog box. To switch to Landscape printing, you need to change Page width to 11in and the Page height to 8.5in.

On the same Layout tab, you can also get up your report to display the data in multiple columns, and you can control the margins. By default, all the margins are set at 1 inch. Remember, if your report width, plus the right and left margins, is greater than the width of the printer, you will get spill-over when you print out your report.

Using parameters

There are two ways to add parameters to your reports. The first is to use parameters in the queries in your data sources. The second is to set up parameters through the Report Parameters dialog box. We will do both.

Query parameters

First, we will set up parameters using a data source query. Navigate to the Data tab, and click the "…" button right next the Dataset dropdown box. The Dataset dialog box opens and allows you to edit the query for the dataset. Change the Query string from "spr_CustomerSelectAll" to "spr_CustomerSelectByState".

Note:
spr_CustomerSelectByState accepts a parameter called StateCD that allows us to filter the data from the Customer table by State. Again, the source code is included in the ReportingDemoDatabaseScript.sql script with the code download.

Click OK and then run the query by clicking the red exclamation point (!) on the Data tab toolbar. You will be prompted to enter a parameter value for StateCD (the State code). Enter "CA" and click OK. The query should return all the customers that live in California.

Switch to the Preview tab. Instead of the report just running, there should be a place for you to enter a value for the "StateCD" and run the report. Enter "CA" and click the View Report button. You should see your report filtered by state.

To edit the parameters, or to add new ones, switch to the Layout tab of the Report Designer and open the Report Parameters dialog from the Report menu. First, we are going to make the "State code" prompt a little more friendly. Select StateCD in the Parameters list box then, in the Parameters Properties box, change the prompt to read "State". In the Available values section enter "California" and "CA" on the first line. Enter "Louisiana" and "LA" on the second line.

This will make the prompt for "State value" into a dropdown. You can also build additional datasets into your report, and use the values in those datasets as criteria for dropdowns.

Report parameters

Now let's add a parameter that is not used in a query. Click the Add button in the Report Parameters dialog from the Report menu. Give the new parameter the name "ReportTitle". Its Data type should be String. Set the Prompt to "Report Title". Click OK and close the dialog box.

Drag a new text box onto the report header area. Right-click on it and choose the Expression option. In the Edit Expression dialog select Parameters. Double-click on the ReportTitle parameter. This text box will now display the value you pass to the Report Title parameter.

Switch to the Preview tab and try it out.

Publishing your reports

Up to now, you have been running your reports in the Visual Studio 2005 environment but, to make them useful, you must publish them to a report server. The easiest way to do this is to have Visual Studio publish your reports.

Start by right-clicking on Project in the Project Explorer and choose Properties.

Set TargetServerURL to the URL of your report server. Use the TargetReportFolder property to set up a folder for your reports. If the folder does not exist, the Publisher will create it for you. The other key thing to pay attention to here is the OverwriteDataSources property. When this property is set to "True", it will automatically copy over all your data source objects when you publish. When set to "False", it will copy any new data source objects, but it will not overwrite existing ones. This is important when dealing with development, test and production servers. You can publish a set of data source objects to each server, pointed at the correct database, and never have to worry about what database your reports are hitting in each environment.

From the Build menu select Deploy Solution. This will publish the project to the selected folder on your report server. You can also deploy individual reports by right-clicking on the file in the Solution explorer and selecting Deploy.

Once your report has been published, you can access and run it on your server through the browser at http://<servername>/<reportservername>. From the Home page, you should be able to find the folder you published to, with the reports in it. Select a report to run. At the top of the page you can enter any values for report parameters, and then run the report. From here, you can also print or export the report.

Wrap up

That's everything you need, to build a very basic report. In the next articles we'll get into adding some more advanced options such as drill-downs, sorting and custom functions. Stay tuned.



This article has been viewed 203472 times.
Steve Joubert

Author profile: Steve Joubert

Steve Joubert is a Microsoft Certified Professional in developing web applications in C#. He has spent nine years developing Microsoft technologies, including building .NET applications, and has a background in such diverse markets as pharmaceuticals, biotech, banking, finance and entertainment. He currently works for ASPSOFT in Orlando, Fla.

Search for other articles by Steve Joubert

Rate this article:   Avg rating: from a total of 365 votes.


Poor

OK

Good

Great

Must read
 
Have Your Say
Do you have an opinion on this article? Then add your comment below:


Subject: Reporting services
Posted by: Anonymous (not signed in)
Posted on: Tuesday, August 29, 2006 at 3:59 PM
Message: Great article. A must read for anyone hinking of starting SSRS.
Munir Syed

Subject: Reporting services
Posted by: Anonymous (not signed in)
Posted on: Wednesday, August 30, 2006 at 2:09 AM
Message: When is Part 2 published?

Subject: ReportingDemoDatabaseScript
Posted by: Anonymous (not signed in)
Posted on: Friday, September 01, 2006 at 3:56 AM
Message: Hi

Just a note to let you know that when I tried to run the script SQL said the database needed to be at least 3MB in size.

I changed the size in the create database command to 3072KB and all went well.

Alan Browne

Subject: Parameters
Posted by: Anonymous (not signed in)
Posted on: Wednesday, September 06, 2006 at 10:24 PM
Message: Is there a way to pass parameters via querystring?

I want to call the report froma web page that has parameters that user will select to run the report?

Thanks,
anabhra

Subject: Parameters
Posted by: Anonymous (not signed in)
Posted on: Wednesday, September 06, 2006 at 11:01 PM
Message: Never mind I figured it out. Now I need to find out how to hide the top header row in the viewer ..the section that displays the parameters...
thanks,
anabhra

Subject: parameters
Posted by: Anonymous (not signed in)
Posted on: Wednesday, September 06, 2006 at 11:05 PM
Message: Sorry for so many posts but I figured that out that one too!

This article has been a great start for me.

Thanks,
anabhra

Subject: Next Installment
Posted by: Anonymous (not signed in)
Posted on: Thursday, September 07, 2006 at 7:39 AM
Message: Brilliant tutorial, is making a lot of sence and i am learning a lot.

Thank you

When is the next part due to be available??

Subject: re: next installment
Posted by: Tony Davis (view profile)
Posted on: Thursday, September 07, 2006 at 10:13 AM
Message: Apologies for the delay in publishing part 2 -- it will be up on the site early next week (Monday or Tuesday).

Cheers,

Tony (Simple-Talk Ed.)

Subject: Reporting Service 2005 and headers
Posted by: Anonymous (not signed in)
Posted on: Friday, September 15, 2006 at 8:50 AM
Message: Hi all,

Header and Footers do not take fields related to a dataset. I have to make them refer to databound fields that are located within the body.

When my databind control does not arise, my Header connected to this control is not posted.

It is normal, but it is my problems

Let’s take for example of invoice:
- an invoice of 30 lines with a pagination of 10 lines per pageµ
- a table of Totals which follows my first table containing the lines of my invoice.
- The header contains the address of the customer to be invoiced (the posted infos are connected on the first table)

If I arrive on the page 4 which posts the totals, I do not have any more the address of the customer who posts himself.
On the 4th page, the header of the table of details is not repeated as there is no more row to display; therefore the header of the report doesn't hold any info anymore.

Do you have an idea ?

Thanks

Subject: Thanks
Posted by: Anonymous (not signed in)
Posted on: Monday, September 18, 2006 at 12:09 PM
Message: Foi de grande valia, parabéns pela iniciativa.

Subject: SSRS - good tutorial
Posted by: Anonymous (not signed in)
Posted on: Friday, September 29, 2006 at 12:28 AM
Message: An easy to follow tutorial. Thanks Steve
Zavier

Subject: Excellent Job
Posted by: Anonymous (not signed in)
Posted on: Wednesday, October 04, 2006 at 3:29 PM
Message: You have done a fantastic job for newbie like me to start off. Thank you very much.

Subject: important steps missing
Posted by: Anonymous (not signed in)
Posted on: Thursday, October 19, 2006 at 9:43 AM
Message: I really appreciate this article,
However very important step missing from part one
when setting up a shared data source . You do not mention the initial catalog which is required

Subject: Selecting Report DataSet
Posted by: Anonymous (not signed in)
Posted on: Thursday, October 19, 2006 at 3:18 PM
Message: Hi, Great Article!!!
Could you help-me to find a solution to my problem?

I need to make a report where I can switch among more or less 15 DataSet with diferents servers and Sql Server Database name.
The report will always be the same, just the DataSet will change.

Thank you a lot!
Lucas Almeida
lucas.almeida@conductor.com.br

Subject: Very Helpful
Posted by: Anonymous (not signed in)
Posted on: Friday, October 20, 2006 at 9:46 AM
Message: Thanks!

Subject: Reporting Service
Posted by: Anonymous (not signed in)
Posted on: Friday, October 27, 2006 at 2:14 AM
Message: very help full article.

Subject: Reporting Services
Posted by: Anonymous (not signed in)
Posted on: Thursday, November 02, 2006 at 10:04 AM
Message: It's just great article. Thanks for keeping streamlined all things.

Subject: Reporting Services
Posted by: Anonymous (not signed in)
Posted on: Friday, November 10, 2006 at 12:22 PM
Message: Good Job Steve. Keep up the good work.

Subject: Reporting Services
Posted by: Anonymous (not signed in)
Posted on: Wednesday, November 15, 2006 at 2:28 AM
Message: This is a great article, everyone must read it to learn SSRS.

Best Regards,
Rami Zaitoun

Subject: Reporting services Table Prob
Posted by: Anonymous (not signed in)
Posted on: Thursday, November 16, 2006 at 12:17 AM
Message: hi,

i have used a single tablw with number of headers which used to return values. But loading of design took much time at last its saying file corrupted. Pls do help me.
Thanking u.

Subject: report header
Posted by: Anonymous (not signed in)
Posted on: Thursday, November 16, 2006 at 1:37 PM
Message: The page header and report header cannot be the same. I want to know, how we will design the report header (Which will display only in begining of the report)

If somebody knows Plz let me know.
Venkateshwar Rao Gunlapally

Subject: Reporting services
Posted by: Dayashankar (view profile)
Posted on: Friday, November 17, 2006 at 5:07 AM
Message: Best way of step by step learning Reporting services. Easy and Friendly tutorial.Thanks a lot

Subject: passing parameters
Posted by: Anonymous (not signed in)
Posted on: Thursday, November 23, 2006 at 11:09 PM
Message: hi all can any body help me to pass parameters(more then one) in the report with the querystring
i have a form in wic i am selecting the fields...and i want the parameters to be passed in the query string and report be generated with those parameters on the click of mouse.
Mail me 2 vijaymann1@gmail.com
thanks

Subject: Reporting Services
Posted by: jasoncsunde (view profile)
Posted on: Tuesday, November 28, 2006 at 2:18 PM
Message: I think that this is a great article for anyone starting out with Reporting Services.

Subject: Setting Margins
Posted by: Anonymous (not signed in)
Posted on: Monday, December 11, 2006 at 3:48 AM
Message: how to set the header and footer margins?
i set it in the sql report 2005 and when i export it to the excel the parameters dont hold thier margin values, passed through the report.

please advice.

Subject: hi
Posted by: Anonymous (not signed in)
Posted on: Tuesday, December 12, 2006 at 9:45 AM
Message: hi very good and nice article

Subject: hi
Posted by: Anonymous (not signed in)
Posted on: Tuesday, December 12, 2006 at 9:47 AM
Message: can you please post some advanced articles on reporting services like grouping and filtering

Subject: Report header v.s. Page header
Posted by: Anonymous (not signed in)
Posted on: Wednesday, December 13, 2006 at 2:43 PM
Message: You are using report header/footer and page header/footer interchangeably and there is a big difference. a report header/footer doesn't repeat on every page.

Subject: Is there a way to pass parameters via querystring?
Posted by: Arul (not signed in)
Posted on: Thursday, December 21, 2006 at 12:39 AM
Message: Is there a way to pass parameters via querystring?

I want to call the report from a web page that has parameters that user will select to run the report?

Subject: Hi anabhra..can you help me on this?
Posted by: Anonymous (not signed in)
Posted on: Thursday, December 21, 2006 at 11:54 AM
Message: Hi anabhra,
can you help me on this?

Is there a way to pass parameters via querystring?

I want to call the report from a web page that has parameters that user will select to run the report?

Thanks,
Arul

Subject: thanks
Posted by: Anonymous (not signed in)
Posted on: Tuesday, December 26, 2006 at 2:32 AM
Message: Hi anabhra,
thanks for your explaining.
it's very helpfull for me .

Thanks,
Ayşegül

Subject: Thanks
Posted by: JChalouhi (not signed in)
Posted on: Tuesday, December 26, 2006 at 4:34 AM
Message: very helpful thank you,easy to apply and easy to learn.thank you very much,keep it up

Subject: Thanks
Posted by: charbel (view profile)
Posted on: Tuesday, December 26, 2006 at 4:41 AM
Message: a very good way to learn and start deploying SSRS projects.
good explanation and deep details
thanks

Subject: Good starting point to learning SSRS
Posted by: Akbar Ali (not signed in)
Posted on: Thursday, December 28, 2006 at 1:39 AM
Message: hi

A good start of learing SSRS and also the deployment, a nice article for starters, looking forward with next version with new aspects and deeper details.

Subject: One request
Posted by: Anonymous (not signed in)
Posted on: Thursday, December 28, 2006 at 5:34 AM
Message: I will be happy if the article contains coding part, rather than connecting to DB manually and creating reports. Please substantiate with code examples.Looking forward for the best

Subject: Need One Solution
Posted by: Ruja (not signed in)
Posted on: Friday, December 29, 2006 at 1:40 AM
Message: Hi,
Good article but can anyone tell me how to pass parameters to query from visual studio web form?


Subject: Beginning SSRS 2005 Part 1
Posted by: Anonymous (not signed in)
Posted on: Tuesday, January 02, 2007 at 4:03 PM
Message: Under deadline pressure, and after 2 months of hairpulling, I still couldn't get the sample DB/DW (from MS Online Books Help), nor the sample DBs from the Microsoft Press book ("SS 2005 RS Step by Step")configured so I could follow along with the examples. (Nor was any tech support available from Microsoft.) Your article truly does make it simple: in 2 days I had a prototype report to show my boss! I cannot thank you enough.

Subject: A Gift to those worried about implementing RS
Posted by: R Suresh (not signed in)
Posted on: Wednesday, January 10, 2007 at 3:44 AM
Message: This came as a candle light when i was groping in the dark for a solution for implementing RS for our project(Tango- Taxcut2007).

Thanks Steve. Hats off to you.
R Suresh

Subject: Dataset using .net Application
Posted by: Anonymous (not signed in)
Posted on: Wednesday, January 24, 2007 at 3:49 AM
Message: Hi Steve,

Could u pls help me in this? I am trying to create dataset using .net application and it will automatically connects to the source database and creates a dataset for the report. User's need not to create a dataset for the report.

Is it possible? If Yes, what are the steps and procedures to achive this?

Thanks

Subject: Dataset using .net Application
Posted by: Anonymous (not signed in)
Posted on: Wednesday, January 24, 2007 at 3:52 AM
Message: Hi Steve,

Could u pls help me in this? I am trying to create dataset using .net application and it will automatically connects to the source database and creates a dataset for the report. User's need not to create a dataset for the report.

Is it possible? If Yes, what are the steps and procedures to achive this?

Thanks

Subject: Dataset using .net Application
Posted by: Anonymous (not signed in)
Posted on: Wednesday, January 24, 2007 at 3:59 AM
Message: Hi Steve,

Could u pls help me in this? I am trying to create dataset using .net application and it will automatically connects to the source database and creates a dataset for the report. User's need not to create a dataset for the report.

Is it possible? If Yes, what are the steps and procedures to achive this?

Thanks

Subject: Formatting a Matrix Report
Posted by: Anonymous (not signed in)
Posted on: Wednesday, February 07, 2007 at 1:43 AM
Message: Hi Steve,
Thanks for your wonderful articles that have helped us a lot. But, I am still looking for something to format my Matrix Report with two row groups in it. could you please help us to know how we can format (bold/ underline, background color etc) the Sub Total columns in a Matrix Report. Also how can we present the second row groups under first after a tab space? This will be a great help.

Thanks
Steve P

Subject: 3 rd and 4 th articles
Posted by: Anonymous (not signed in)
Posted on: Thursday, February 08, 2007 at 12:29 AM
Message: Hi Steve,
I am not able to find your 3 rd and 4 th articles in this reporting series
Thanks for your help

Subject: 3 rd and 4 th articles
Posted by: Anonymous (not signed in)
Posted on: Thursday, February 08, 2007 at 12:51 AM
Message: Hi Steve,
I am not able to find your 3 rd and 4 th articles in this reporting series
Thanks for your help

Subject: 3 rd and 4 th articles
Posted by: Anonymous (not signed in)
Posted on: Thursday, February 08, 2007 at 5:07 AM
Message: Hi Steve,
I am not able to find your 3 rd and 4 th articles in this reporting series
Thanks for your help

Subject: summation of column
Posted by: Anonymous (not signed in)
Posted on: Tuesday, February 13, 2007 at 11:31 PM
Message: hi steve,

can you help me about reporting services on how to sum the coloumn and put it on a textbox... but the case is like this,

Stud Name Fee Name Fee Amt. Amt Paid
John Doe Registration 1000 1000
Tuition Fee 5000 3500
1500
Jane Bake Tuition Fee 5000 5000

when i aggregate the Fee Amt. using Sum function i get the result of 16000 because john doe break his payment in to two. any help would be appreciated. tnx









Subject: Hi anabhra/Arul..can you help me on this?
Posted by: Anonymous (not signed in)
Posted on: Sunday, February 25, 2007 at 5:17 PM
Message: Hi anabhra/Arul,
can you help me on this?

Is there a way to pass parameters via querystring?

I want to call the report from a web page that has parameters that user will select to run the report?
Mail me on swatiban@gmail.com
Thanks,
Swati

Subject: How to get data repeated in the body
Posted by: Anonymous (not signed in)
Posted on: Tuesday, February 27, 2007 at 3:29 AM
Message: I have placed required fields in the Report body for repeating data, but I am getting only one reocrd in the entire report. When I check with query, it has around 1400 records, but I am getting only one record in the report.

Please help me out.
Thanks,
RaviPola.

Subject: How to get data repeated in the body
Posted by: Anonymous (not signed in)
Posted on: Tuesday, February 27, 2007 at 3:33 AM
Message: When I use Table in the body then I able to see all the data.

But here I want to display without table. As I have placed database feilds in the design form only.
Thanks,
RaviPola.

Subject: How to call Functions from SQL-2005 Database.
Posted by: Anonymous (not signed in)
Posted on: Tuesday, February 27, 2007 at 3:36 AM
Message: I have created Database in SQL-2005 with Tables, StoredProcedures and Functions.

By the time of Generating Report, I could able to call StoredProcedure but I did not able to call Functions in the same report.

Please help me out on how to call functions and StoredProcedures in the same report.

Mail me On ravi_pola2001@yahoo.com, ravipola2001@gmail.com

Thanks
RaviPola.

Subject: Great article to begin with
Posted by: Anonymous (not signed in)
Posted on: Wednesday, February 28, 2007 at 10:57 PM
Message: Great article to start off with... would recommend freshers to this article

Subject: Nice one
Posted by: Anonymous (not signed in)
Posted on: Thursday, March 08, 2007 at 5:35 AM
Message: clear step through, simple, basic but that what you need if you are a beginner.

Subject: chart sizes
Posted by: Anonymous (not signed in)
Posted on: Monday, March 12, 2007 at 10:34 AM
Message: how can we make the chart sizes interactive?
I mean, how to change chart size based on the parameter selected by the user?
The page size is good since I can give interactive size 0;0 which does the job, but not the chart size?
Can you help me with this?
Thanks a lot.

Subject: Formatting subtotals in matrix report is simple
Posted by: Anonymous (not signed in)
Posted on: Monday, March 19, 2007 at 11:15 AM
Message: For all those who want to some extra formatting Matrix Report - the trick is the InScope() function. I have a matrix report with 2 column groupings and one row grouping and I wanted to show a different color in subtotals and even make them bold, all this can be done using this inscope function.
For background color - select the text box properties and then select background color property and click expression and write this -> =iif(inscope("matrix_columngroup2","white","yellow")

This will put the background color yellow for the text box in the subtotal and the regular information will have white color.

You can do the same thing for the Font Weight property too.

Hope this is helpful.
Cheers.

Subject: How to load a parameter value depending upon user rights ?
Posted by: Anonymous (not signed in)
Posted on: Thursday, March 22, 2007 at 1:09 PM
Message: In my reports i want to load the list of countries as a parameter depending on the user logged in my asp.net application. For this i need to pass UserId as parameter from my .aspx page. How will i achieve this?

mail me ratheeshn@gmail.com
Thanks in advance

Subject: Reporting Services
Posted by: Anonymous (not signed in)
Posted on: Tuesday, March 27, 2007 at 6:54 AM
Message: hi all
My probelm is i ve generated the report but i ve to pass parameters from a browser to reporting services

main idea it should not b using url parameter passing or any source code
I want the procedure for passing parameters directly from a browser to a reporting services

If Any body knows kindly reply me or mail me

chandusripathi@gmail.com
or contact me 9885331312 at any time thank u bye



Subject: Formatting subtotals in matrix report is simple
Posted by: Anonymous (not signed in)
Posted on: Wednesday, April 04, 2007 at 10:17 AM
Message: Hi all,

I have a matrix report.
I am trying to make my subtotals bold, as well as add an extra line under my first row.
I tried the Inscope function but it gives me an error "Wrong number of arguments."

mail me
zaraivanova@gmail.com
Thanks

Subject: About passing parameters to Sub-Report
Posted by: Anonymous (not signed in)
Posted on: Tuesday, April 10, 2007 at 4:54 AM
Message: How do u bind a main report to subreport
and how do u pass parameters for the same

mail me
gauri.avarsekar@gmail.com
Thanks

Subject: Great Overview - But how about a specific issue...
Posted by: Anonymous (not signed in)
Posted on: Saturday, April 14, 2007 at 2:50 PM
Message: How can you lock the summary lines, so that when you are using the drilldown capablilities of the reporting tool you don't loose the column headings?

Subject: Great!
Posted by: Anonymous (not signed in)
Posted on: Tuesday, April 17, 2007 at 6:41 AM
Message: I've been asked to work with Reporting Services for the first time... Your explanation above is absolutely great in terms of the basics that you need to know to get started.

Thanks a lot!

Subject: Superb
Posted by: Patrick Index (view profile)
Posted on: Thursday, April 19, 2007 at 9:49 AM
Message: Superb article. Very helpful. Thanks

Subject: Report Server won't start
Posted by: Anonymous (not signed in)
Posted on: Tuesday, April 24, 2007 at 6:15 AM
Message: Why did my SSRS Server won't start ? I've already try it many times from configuration manager, but it still not work. Can anyone help me ? Thanks

Subject: Passing Parameters
Posted by: Anonymous (not signed in)
Posted on: Wednesday, April 25, 2007 at 10:12 AM
Message: Can anyone explain how to pass parameters from a asp webpage to the report server please.I see ther are a few similar posts here maybe you guys could help

Subject: very good!!!
Posted by: Anonymous (not signed in)
Posted on: Wednesday, May 02, 2007 at 8:12 AM
Message: very good!!!

Subject: Passing Parameters Answer
Posted by: Steve Joubert (view profile)
Posted on: Thursday, May 03, 2007 at 12:47 PM
Message: Hello all. When you installed SSRS it created two websites Reports and ReportServer by Default. Navigate to the ReportServer website. You will see a list of folders. Open the folder with your report in it. Find the report you want and open it. The screen will come up and prompt you for parameters. Let's say that your report needs a CustomerID. Simply ad this as a querystring value to the URL "&CustomerID=1516" and refresh the page. If you pass all of the required parameters to the report it will run automatically.

Alternatively if you are using the ReportViewer Control in VS2005 you:

1. Reference the Microsoft.Reporting.WebForms namespace
2. Create a collection of ReportParameters
3. Create the individual paramenters
4. Pass the parameters to the SetParameters() function of the ReportViewer.

using Microsoft.Reporting.WebForms;

List<ReportParameter> parms = new List<ReportParameter>();

parms.Add(new ReportParameter("CustomerID", 1516));

ReportViewer1.ServerReport.SetParameters(parms);

I hope this helps.

Subject: report Services
Posted by: Anonymous (not signed in)
Posted on: Friday, May 04, 2007 at 5:43 AM
Message: it is excellent for the beginers.
i tis very nice.

Subject: Having problem in deploying the reports.
Posted by: Anonymous (not signed in)
Posted on: Tuesday, May 08, 2007 at 5:30 AM
Message: Having problem in deploying the reports.
While trying to run with http:\\localhost\reportserver\

Its giving

Reporting Services Error

The report server has encountered a configuration error. See the report server log files for more information. (rsServerConfigurationError)
Access to the path 'C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config' is denied.

I have given the full control to the folder itself, still it is giving the same error.

Please reply to

j.selvakumar@gmail.com

Thanks

Subject: report header/footer
Posted by: Anonymous (not signed in)
Posted on: Wednesday, May 09, 2007 at 8:43 AM
Message: Hej
any one can explain me how to make a report header/footer? i do not mean the page header/footer, but i mean somthing that appear just in the start og the report and the end of the report.
kindly mail me at aborouaa@gmail.com if you know the answer or a link to a good article aboute that.
thanks

Subject: Problems in connecting to Reporting Services
Posted by: Anonymous (not signed in)
Posted on: Sunday, May 13, 2007 at 12:59 PM
Message: I still had problems connecting to reporting services. Although I selected Service Credentials as per this article, when it was trying to connect from SQL Server Management Studio, it was trying to logon using Windows Authentication - my user name. I had already tried the aspnet_regiis bit with my user id. I read this article and tried it with ASPNET as the user. I thought that this might have been it since in the SQL Server Configuration Manager the Web Service Identity is ASPNET. However, it still did not work. What finally solved it was going in to the SQL Server Configuation Manager and changing the Windows Service Identity from the default of Built in Account localhost to Windows Account and entering my User Name. I think that there was some extra bit during that which I forget.

Are there any implications for what I did? Is there another way around this?

By the way I am running on XP Professional with IIS 5.1. I installed SQL Server, SSAS, and SSIS before I installed IIS and SSRS. I am using .Net v2. My PC is a 32 bit.

Subject: Great Article
Posted by: Anonymous (not signed in)
Posted on: Tuesday, May 15, 2007 at 3:14 PM
Message: It is a great article for any beginner as it gives you the basic knowledge of generating the report and rest can be done by doing a more research

Subject: Thanks a Ton !
Posted by: Anonymous (not signed in)
Posted on: Thursday, June 07, 2007 at 1:02 AM
Message: Gr888888888888 Work !

Subject: SSRS
Posted by: Manju (not signed in)
Posted on: Friday, June 08, 2007 at 3:09 AM
Message: Articel is really nice thank you for your information on SSRS

Subject: Thanks
Posted by: shullz (not signed in)
Posted on: Thursday, June 14, 2007 at 4:14 AM
Message: it helped me alot.

Subject: Nice Article
Posted by: Anonymous (not signed in)
Posted on: Friday, June 22, 2007 at 5:06 PM
Message: You got me excited to start learning SSRS. I've been using Crystal Reports for many years but am very involved now with SQL Server 2005. Loading SSRS over the weekend to play.

Subject: Thanks
Posted by: Ash (not signed in)
Posted on: Monday, June 25, 2007 at 2:19 AM
Message: This article was of great help for me. Thanks. I am quite comfortable with creating reports now

Subject: How to use three or more datasets with a single table.
Posted by: Bharat (not signed in)
Posted on: Thursday, June 28, 2007 at 1:00 PM
Message: I have to use three datasets with the same table and also use fix header proprty of the table. I am having difficulty in achieving this. Can you please help me.
My e-mail addrees is bpgadhia@yahoo.com
Thank you in advance.
Bharat Gadhia.

Subject: Passing Multi-Valued to SetReportParameters
Posted by: Anonymous (not signed in)
Posted on: Friday, June 29, 2007 at 12:29 AM
Message: Can anybody help me with some code example how to pass multiple values to a Multi-Value parameter with SetReportParameters.

johans@synaxon.co.za

Subject: Reporting Services
Posted by: Venkateswarlu.Ch (not signed in)
Posted on: Friday, June 29, 2007 at 4:22 AM
Message: It is most useful for beginners .This article was of great help for me. Thanks.When is Part 2 published?

Subject: Bandwidht wastage
Posted by: Anonymous (not signed in)
Posted on: Friday, July 06, 2007 at 7:39 AM
Message: Hi

Nice article,I had a doubt when i pass the dataset to reports via coding in local mode,it hits the reporting service or not,if it will hit means,the net connection is needed or not, if needs bandwidth is reduced or not.

Murali
murali@ibpm.net

Subject: Passing parameters to reports
Posted by: Anonymous (not signed in)
Posted on: Friday, July 06, 2007 at 12:00 PM
Message: I am trying to pass a parameter to a Reporting Services report written in Visual Studio 2005 from an application also written in Visual Studio 2005 and it just isn't working. The report is called from an xml page like so:

openWindow('http://path?itempath=%2freport+name%26parm=value')

where %2f and %26 are the hexadecimal representations of "/" and "&", respectively. But when I click the link, although the report appears, my parameters are not populated. Has anyone had this problem? I would appreciate any advice. Thanks.

Subject: Q
Posted by: Yazan (not signed in)
Posted on: Monday, July 09, 2007 at 7:45 AM
Message: How to do grouping in the table as the matrix ... is it possible or not ??!!!

Subject: deploying a report(through vs2005)
Posted by: Chandan Koushik (not signed in)
Posted on: Tuesday, July 10, 2007 at 12:29 AM
Message: Hi Steve,
i want to programatically deploy the report in VS2005 environment,ie.from an asp.net page if i click deploy report Button ,the report should be deployed into the report server automatically.So that i can view the report in report server.
the input to the asp page would be the.rdl file...
If anyone could help then it would be good.
thankyou.
you can reply back at chandan_koshik@yahoo.com

Subject: Matrix Average Column/Sort/Formating
Posted by: Abhijit Ramani (not signed in)
Posted on: Tuesday, August 07, 2007 at 1:04 PM
Message: Have a matrix report with 2 column SaleAmount and ProfitAmounts by Month like

Sale Profit
Dealer May June July May June July
A 100 200 300 20 25 15
B 200 250 50 30 45 19


how can i do following 3 things

1)Add Total column for Sale and Average column for Profit

2)Always Sort report by lastMonth of Sale (here 7/1/2007) High to low

3)if last month of sale(here 7/1/2007) is less than second last month here (6/1/2007) whole row should be red

thanks
you can reply back at it@mobileistic.com

Subject: Error of running report server
Posted by: kiran kharat (not signed in)
Posted on: Thursday, August 09, 2007 at 4:34 AM
Message: when i run report server project it gives following errors.
rsServerConfigurationError,login failed,& a connection could not be made to report server.

Subject: Error when running report server
Posted by: kiran kharat (not signed in)
Posted on: Thursday, August 09, 2007 at 4:38 AM
Message: when i run report server project it gives following errors.
rsServerConfigurationError,login failed,& a connection could not be made to report server.
i tried more options but still gives errors so please help me. you can reply back to me at
kharatkiran1@gmail.com , kkharat@mtuberall.com

Subject: Passing parameters using querystring from a C# ASP.NET Web Page