{"id":1390,"date":"2012-08-24T00:00:00","date_gmt":"2012-08-24T00:00:00","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/report-builder-3-0-creating-a-basic-report\/"},"modified":"2021-05-17T18:33:19","modified_gmt":"2021-05-17T18:33:19","slug":"report-builder-3-0-creating-a-basic-report","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/databases\/sql-server\/bi-sql-server\/report-builder-3-0-creating-a-basic-report\/","title":{"rendered":"Report Builder 3.0: Creating a Basic Report"},"content":{"rendered":"<div id=\"pretty\">\n<p class=\"start\">Report Builder 3.0 is a report-authoring tool that&#8217;s part of the Reporting Services suite of tools available in SQL Server 2008 R2. However, Report Builder is a free, stand-alone application that can be used by SQL Server developers and business users alike to create reports rich in data visualizations. It provides an Office-like interface that makes it easy to connect to a variety of data sources-such as SQL Server, SQL Azure, Oracle, and SAP NetWeaver BI-and to display the data from those sources in tables, charts, lists, gauges, and maps. <\/p>\n<p>In this article, you&#8217;ll learn how to use Report Builder to create a report that displays data from a SQL Server database. Keep in mind that this article is only the first in a series of articles about Report Builder. This one covers only what you need to know to build a basic report. As we progress through the series, you&#8217;ll learn how to use other Report Builder elements that let you create a variety of interesting and informative reports. <\/p>\n<p>You can download Report Builder at the <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=6116\">Microsoft Download Center<\/a>. There you&#8217;ll find details about system requirements and additional information about the installation process. You can also download sample reports that you can open in Report Builder. <\/p>\n<p>To try out the examples in this article, you&#8217;ll need Report Builder 3.0 installed on your system. You&#8217;ll also need access to a SQL Server instance with the <strong>AdventureWorks<\/strong> sample database installed. The database will provide the data you need to create your report based on the examples I demonstrate here. On my system, I used a local instance of SQL Server 2012 with the <strong>AdventureWorks2012<\/strong> database installed. But you can use different versions of both SQL Server (2005 and on) and the <strong>AdventureWorks<\/strong> database. <\/p>\n<p>The best way to learn Report Builder is to jump right in. In this article, I walk you through the steps necessary to connect to a data source, define a dataset, and present the data in a formatted table. The goal of the article is to provide you with the foundation you need so you can create other types of reports as you need them. Of course, I can&#8217;t show you everything in a single article, but I can give you the information you need to start working with Report Builder right away. <\/p>\n<h2>Getting Started with Report Builder<\/h2>\n<p>All it takes to use Report Builder is to have it installed on your system. Of course, to create a report, you&#8217;ll also need to have access to a data source, such as a SQL Server database. But everything else is available through the Report Builder interface, so to get started, your initial step is to launch the application. <\/p>\n<p>When you first open Report Builder, the <strong>GettingStarted<\/strong> dialog box appears, as shown in Figure 1. (You can see the Report Builder interface behind it.) The dialog box provides several options for creating a new report or opening an existing one. For the purposes of this article and the ones to follow, we won&#8217;t be using this dialog box. If you like, you can select the <strong>Don&#8217;t show this dialog box at startup<\/strong> option so you don&#8217;t have to mess with it going forward. Or you can simply close the box by clicking the red <strong>Close<\/strong> button in top-right corner. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-3f1ee5d7-4385-4b07-8695-f99e4a335742.jpeg\" alt=\"1547-3f1ee5d7-4385-4b07-8695-f99e4a33574\" \/><\/p>\n<p class=\"caption\">Figure 1: The welcome screen that appears when you open Report Builder <\/p>\n<p>After you close the <strong>GettingStarted<\/strong> dialog box, you&#8217;re presented with the <strong>Home<\/strong> tab of the Report Builder interface, which is shown in Figure 2. At the top of the interface is the type of ribbon you&#8217;ve become familiar with in Microsoft Office products. It contains the options necessary to create and design your report. For each tab of the interface, the ribbon contains a different set of options. (You&#8217;ll learn more about these options as we progress through this article and the ones to follow.) <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-516a833b-246f-4907-828a-76f042244747.jpeg\" alt=\"1547-516a833b-246f-4907-828a-76f04224474\" \/><\/p>\n<p class=\"caption\">Figure 2: The Home tab of the Report Builder interface <\/p>\n<p>At the left edge of the Report Builder interface is the <strong>ReportData<\/strong> window, which provides a hierarchical view of the built-in fields, parameters, images, data sources, and data sets available to your report. As with the ribbon options, we&#8217;ll dig into these more as we progress through this series. Same thing for the <strong>RowGroups<\/strong> and <strong>ColumnGroups<\/strong> windows, which, as you might expect, are tied to the way you group data on your report. <\/p>\n<p>The main part of the Report Builder interface is the layout window (outlined in red). This is where you construct your report. Here you can add and configure the elements necessary to display your data, such as tables, graphs, and charts. You can also add elements such as text, images, and lines-many of the things that make your reports more appealing and effective. <\/p>\n<p>Report Builder also includes a set of options that apply to the application as a whole. To access these options, click the <strong>Report Builder<\/strong> button (the large round button at the top-left corner of the screen), and then click the <strong>Options<\/strong> button. This launches the <strong>ReportBuilderOptions<\/strong> dialog box, shown in Figure 3. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-040eb69a-f8e3-4cea-864c-6b283c08044e.jpeg\" alt=\"1547-040eb69a-f8e3-4cea-864c-6b283c08044\" \/><\/p>\n<p class=\"caption\">Figure 3: The Report Builder Options dialog box <\/p>\n<p>The dialog box opens to the <strong>Settings<\/strong> page, which lists a number of options related to the Report Builder interface and report deployment. For now, the only setting that might concern you is the option <strong>Use this report server or SharePoint site by default<\/strong>. When you installed Report Builder, you might have specified a Reporting Services (SSRS) report server where you would eventually deploy your reports. If you provided an incorrect URL or that URL has changed, this is the place to enter the correct information. If the information is incorrect, you will have to wait for Report Server to verify the connection every time you start the application, which can be somewhat time-consuming. So if this issue applies to you, enter the path and then click <strong>OK<\/strong>. <\/p>\n<div class=\"note\">\n<p class=\"note\"><strong>Note:<\/strong> If you&#8217;re connecting to a Reporting Services instance other than the default, you append the instance name onto the path, preceded by an underscore. For example, the report server on my system was installed as part of SQL Server instance <strong>ws02\/SqlSrv2012<\/strong>. As a result, I appended <strong>_sqlsrv2012<\/strong> onto the URL <strong>http:\/\/ws02\/reportserver<\/strong> so it became <strong>http:\/\/ws02\/reportserver_sqlsrv2012<\/strong>, as you can see in Figure 3. <\/p>\n<\/div>\n<p>You might have noticed that the <strong>ReportBuilderOptions<\/strong> dialog box also includes a <strong>Resources<\/strong> page, which provides access to details about Report Builder and to additional information available online. <\/p>\n<p>One other feature you should be aware of before we get started is how to save a report. When you first open Report Builder, you are essentially starting a new report. You can save this report and then access it as you work on it. To do so, click the <strong>ReportBuilder<\/strong> button and then click <strong>Save<\/strong>. This launches the <strong>SaveAsReport<\/strong> dialog box, shown in Figure 4. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-d8be937b-fadd-4d64-ab03-a241a9a79bc0.jpeg\" alt=\"1547-d8be937b-fadd-4d64-ab03-a241a9a79bc\" \/><\/p>\n<p class=\"caption\">Figure 4: Saving a report in Report Builder <\/p>\n<p>Although the <strong>SaveAsReport<\/strong> dialog box shows several option for saving a report, you essentially have two choice: save to the file system or save to the report server you designated in the <strong>ReportBuilderOptions<\/strong> dialog box. For now, we&#8217;ll simply save our report file to the local file system. On my system I navigated to the <strong>C:\\DataFiles<\/strong> folder and named the report <strong>Annual Sales<\/strong>, which becomes the file name. <\/p>\n<p>Notice that Report Builder reports use the <strong>.rd<\/strong>l extension, just like Reporting Services reports. Reporting Services reports and Report Builder reports are created using the Report Definition Language (RDL), an XML-based language that defines how data is retrieved and a report is laid out. <\/p>\n<p>Once you&#8217;ve named and saved your report file, you&#8217;re ready to start creating your report. Be sure to save the file regularly as you develop your report. That way, you can always come back to the report and start where you left off. So, with that in mind, let&#8217;s get started. <\/p>\n<h2>Adding a Data Source to Your Report<\/h2>\n<p>Before you can add data to a report, you must be able to connect to a data source. The data source provides the connection necessary for your report to retrieve the data used to populate its contents. To add a data source, right-click the <strong>Data Sources<\/strong> node in the <strong>ReportData<\/strong> window, and then click <strong>AddDataSource<\/strong>. This launches the <strong>DataSourceProperties<\/strong> dialog box, shown in Figure 5. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-3f50c565-2930-4a51-a080-33ff32ff3a58.jpeg\" alt=\"1547-3f50c565-2930-4a51-a080-33ff32ff3a5\" \/><\/p>\n<p class=\"caption\">Figure 5: Adding a data source to your report <\/p>\n<p>As you can see in the figure, you provide a name for your data source and then choose whether to use a shared connection or a connection embedded in the report. The first option lets you browse to a shared data source that has been published to a report server. Since we have not set up any shared data sources, we&#8217;ll go with the second option, which means we need to configure the connection we want to embed in the report. <\/p>\n<p>So provide a name for your data source-I used <strong>AdventureWorks<\/strong> on my system-and then select the option <strong>Use a connection embedded in my report<\/strong>. When you select this option, new options appear in the <strong>DataSourceProperties<\/strong> dialog box, as shown in Figure 6. Notice that you must now select a connection type and define a connection string. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-14b16c5a-b33f-45cc-8063-8569de4e8bd9.jpeg\" alt=\"1547-14b16c5a-b33f-45cc-8063-8569de4e8bd\" \/><\/p>\n<p class=\"caption\">Figure 6: Configuring your data source <\/p>\n<p>A Report Builder data source supports numerous connection types. To see a full list of what&#8217;s available, click the down arrow on the <strong>Selectconnectiontype<\/strong> drop-down list. You can then select the connection type you want to use. For this article, we&#8217;ll be using the <strong>MicrosoftSQLServer<\/strong> connection type, which is the default value, so in this case, you don&#8217;t need to take any steps to specify the connection type. <\/p>\n<p>Next, you must build your connection string. The connection string shown in Figure 6 (in the <strong>Connectionstring<\/strong> text box) is the one I built for our examples. To build the connection string, click the <strong>Build<\/strong> button. This launches the <strong>ConnectionProperties<\/strong> dialog box, shown in Figure 7. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-2a67938f-fdcd-48d0-bdb4-13c7d0c1cecf.jpeg\" alt=\"1547-2a67938f-fdcd-48d0-bdb4-13c7d0c1cec\" \/><\/p>\n<p class=\"caption\">Figure 7: Building a connection string for your data source <\/p>\n<p>From the <strong>Servername<\/strong> drop-down list, select the SQL Server instance that contains your source data. Then, if necessary, select an authentication model for connecting to that SQL Server instance. If you plan to use Windows Authentication, you don&#8217;t need to do anything. However, if you&#8217;ll be using SQL Server Authentication, you must select the <strong>Use SQL Server Authentication<\/strong> option and provide the necessary credentials. (To keep things simple for these exercises, I used Windows Authentication and ran Report Builder as an administrator.) <\/p>\n<p>Next you must select the database that contains the source data. Since I&#8217;m using the <strong>AdentureWorks2012<\/strong> database, that&#8217;s the one I selected. Figure 8 shows you what the <strong>ConnectionProperties<\/strong> dialog box looked like on my system after I finished configuring the connection properties. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-0fb740e8-bd68-4c4b-8a5a-05d10838198e.jpeg\" alt=\"1547-0fb740e8-bd68-4c4b-8a5a-05d10838198\" \/><\/p>\n<p class=\"caption\">Figure 8: Configuring the connection properties <\/p>\n<p>After you&#8217;ve configured the properties, you should test your connection. Then click <strong>OK<\/strong> to close the dialog box. You&#8217;ll be returned to the <strong>DataSourceProperties<\/strong> dialog box, which should now look similar to the one shown in Figure 6. <\/p>\n<p>You might have also noticed that the <strong>DataSourceProperties<\/strong> dialog box includes a <strong>Credentials<\/strong> page. (So far, we&#8217;ve been working on the <strong>General<\/strong> page.) As shown in Figure 9, the <strong>Credentials<\/strong> page lets you change the credentials used to connect to the data source. You can configure this page only if your data source connection is embedded in the report (otherwise the options are grayed out). The report server can then use these credentials to connect to that data source. This enables other users to run the report without having to provide credentials for the underlying data source connection. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-088e3b72-fc9f-4eb5-a7de-5fd99a4a2ad5.jpeg\" alt=\"1547-088e3b72-fc9f-4eb5-a7de-5fd99a4a2ad\" \/><\/p>\n<p class=\"caption\">Figure 9: Changing the credentials used to connect to a data source <\/p>\n<p>For now, we don&#8217;t need to be concerned about setting these credentials. So return to the <strong>General<\/strong> page if necessary and again test your connection. Then click <strong>OK<\/strong> to close the <strong>DataSourceProperties<\/strong> dialog box. Your new data source is added to the <strong>DataSources<\/strong> node in the <strong>ReportData<\/strong> window. <\/p>\n<h2>Adding a Dataset to Your Report<\/h2>\n<p>The next step in building your report is to create a dataset. A dataset defines the actual data that you want to retrieve from your data source. For example, if you&#8217;re data source is a SQL Server database, the dataset will be based a query or stored procedure that returns a result set you can use to populate your reports. The dataset acts as a bridge between your report and the data source. The data source establishes the connection, and the dataset defines what data is retrieved through that connection. <\/p>\n<p>To create a dataset, right-click the <strong>Datasets<\/strong> node in the <strong>ReportData<\/strong> window, and then click <strong>AddDataset<\/strong>. This launches the <strong>DatasetProperties<\/strong> dialog box, shown in Figure 10. The dialog box opens on the <strong>Query<\/strong> page, which is the only page we need to be concerned about for now. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-3f2386b9-4693-405b-a987-b973ea0e1cbe.jpeg\" alt=\"1547-3f2386b9-4693-405b-a987-b973ea0e1cb\" \/><\/p>\n<p class=\"caption\">Figure 10: Adding a dataset to your report <\/p>\n<p>As with the data source, you can use either a shared dataset or embed one in your report. Again, we&#8217;ll embed the information in the report. So provide a name for the dataset-I used <strong>AnnualSales<\/strong>-and then select the option <strong>Use a dataset embedded in my report<\/strong>. When you click this option, you&#8217;re presented with a several additional options, as shown in Figure 11. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-ab77700d-cd77-4a51-a7e6-e751f0d9fc9f.jpeg\" alt=\"1547-ab77700d-cd77-4a51-a7e6-e751f0d9fc9\" \/><\/p>\n<p class=\"caption\">Figure 11: Configuring a dataset for your report <\/p>\n<p>First, you&#8217;ll need to select the data source on which the dataset is based. From the <strong>Datasource<\/strong> dropped-down list, select the <strong>AdventureWorks<\/strong> data source (or whatever you named your data source). Then, in the <strong>Query<\/strong> text box, enter the following query: <\/p>\n<pre class=\"theme:ssms2012 lang:tsql\">SELECT\n&#160;&#160;BusinessEntityID,\n&#160;&#160;FirstName,\n&#160;&#160;LastName,\n&#160;&#160;JobTitle,\n&#160;&#160;City,\n&#160;&#160;StateProvinceName,\n&#160;&#160;CountryRegionName,\n&#160;&#160;TerritoryName,\n&#160;&#160;TerritoryGroup,\n&#160;&#160;SalesQuota,\n&#160;&#160;SalesYTD,\n&#160;&#160;SalesLastYear\nFROM\n&#160;&#160;Sales.vSalesPerson\nWHERE\n&#160;&#160;TerritoryGroup IS NOT NULL; <\/pre>\n<p>As you can see, we&#8217;re selecting several columns from the <strong>Sales.vSalesPerson<\/strong> view. Each column returned from the query can be used as a field in your report. Click <strong>OK<\/strong> to close the <strong>DatasetProperties<\/strong> dialog box. <\/p>\n<p>Your dataset should now be listed on the <strong>Datasets<\/strong> node in the <strong>ReportData<\/strong> window. And beneath the dataset, you should see a list of the fields returned by your dataset. For example, you should see the <strong>BusinessEntityID<\/strong>, <strong>FirstName<\/strong>, <strong>LastName<\/strong>, <strong>JobTitle<\/strong>, and all the other columns returned by your result set. You can now use these fields to build your report. <\/p>\n<h2>Adding a Table to Your Report<\/h2>\n<p>Once you&#8217;ve added your data source and dataset, you can add a <em>data region<\/em> or <em>data visualization<\/em>. A data region is a report object that displays your source data in a tabular format (rows and columns). Report Builder supports the following data region objects: <\/p>\n<ul>\n<li><strong>Table:<\/strong> A tabular object that contains a fixed number of columns. But the rows are dynamic, which means they can expand to accommodate the data you&#8217;re trying to display. It also means you don&#8217;t need to know how many rows of data will be returned by the data source when you add your table to the report, although you do have to specify the columns.  <\/li>\n<li><strong>Matrix:<\/strong> A tabular object similar to a table, except that your columns can be static or dynamic, which means the report can grow both vertically and horizontally. A matrix is a lot like a crosstab or pivot table.  <\/li>\n<li><strong>List:<\/strong> A tabular object that presents data in a freeform fashion. Lists are handy for creating forms such as invoices. <\/li>\n<\/ul>\n<p>As we work through this series, we&#8217;ll dig deeper into each of these data region types. But for now, let&#8217;s look at the data visualizations. A data visualization is an object that displays the source data graphically in order to provide a conceptual overview of the underlying information. Report Builder supports the following data visualizations: <\/p>\n<ul>\n<li><strong>Chart:<\/strong> A graphical presentation of the data in the form of such objects as bar, pie, and line charts.  <\/li>\n<li><strong>Gauge:<\/strong> A key performance indicator (KPI) that presents a range of data, with an indicator that points to a specific value within that range.  <\/li>\n<li><strong>Map:<\/strong> Data presented against a geographical background. The data can be based on SQL Server spatial data, an Economic and Social Research Institute (ESRI) shapefile, or Microsoft Bing map tiles.  <\/li>\n<li><strong>Data bar:<\/strong> A simple chart used in conjunction with other data and charts to present complex information in a small space. A data bar typically represents only a single data point.  <\/li>\n<li><strong>Sparkline:<\/strong> A simple chart similar to a data bar, except that it typically presents a series of information.  <\/li>\n<li><strong>Indicator:<\/strong> A small gauge that displays the state of a single data value. <\/li>\n<\/ul>\n<p>As with the various types of data regions, we&#8217;ll go into each of the data visualizations more deeply as we progress through this series. For now, let&#8217;s focus on how to add a table to our report. To do so, go to the <strong>Insert<\/strong> tab, shown in Figure 12. As you&#8217;ll discover, the ribbon includes the data regions and data visualizations-along with other elements-that you can add to your report. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-663f3858-89e4-421c-9290-713f5681ff15.jpeg\" alt=\"1547-663f3858-89e4-421c-9290-713f5681ff1\" \/><\/p>\n<p class=\"caption\">Figure 12: The Insert tab of the Report Builder interface <\/p>\n<p>If you want, you can modify your design surface to make it bigger. You can also reduce the size of the <strong>RowGroups<\/strong> and <strong>ColumnGroups<\/strong> windows. For example, as you can see in Figure 13, I made the design surface bigger and moved the text box within the footer. (The footer is the region beneath the dotted line near the bottom of the design surface.) <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-154f4db3-6d74-45c0-b365-109cd5847ae0.jpeg\" alt=\"1547-154f4db3-6d74-45c0-b365-109cd5847ae\" \/><\/p>\n<p class=\"caption\">Figure 13: Modifying the design surface in Report Builder <\/p>\n<p>The best way to learn how to move these elements around is to experiment with them. Normally it involves dragging a corner or side from one point to the other. If you&#8217;ve ever worked with a draw program, you&#8217;ll find the principles to be essentially the same. <\/p>\n<p>Now let&#8217;s add out table. Click the down arrow beneath the <strong>Table<\/strong> icon on the ribbon, and then click <strong>InsertTable<\/strong>. Next, move your cursor to the design surface. The cursor becomes a plus sign with a tiny table icon. Position the cursor where you want the top-left corner of your table to sit, click the left mouse button, and then drag the cursor to the point where you want the bottom-right corner to sit. The red arrow in Figure 14 shows the direction to move the cursor. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-4dc6b691-8544-4ad6-be90-b4df8b38e0a0.jpeg\" alt=\"1547-4dc6b691-8544-4ad6-be90-b4df8b38e0a\" \/><\/p>\n<p class=\"caption\">Figure 14: Adding a table to your report <\/p>\n<p>When you let go your cursor, the table object is added to your report. It should look similar to the one shown in Figure 14 (without the red arrow, of course). The next step is to add the fields you want to include in your report. For the report I&#8217;m demonstrating here, we&#8217;ll add the following fields (in the specified order): <strong>FirstName<\/strong>, <strong>LastName<\/strong>, <strong>TerritoryGroup<\/strong>, <strong>SalesQuota<\/strong>, and <strong>SalesYTD<\/strong>. <\/p>\n<p>To add a field, drag it from the list of fields in the <strong>ReportData<\/strong> window to the appropriate column in the table object. For example, drag the <strong>FirstName<\/strong> field to the first column and the <strong>LastName<\/strong> field to the second column. For the fourth column, drag the field to the right side of the table. When a heavy blue line appears, drop the field on that line. The column will be added to the table. You might have to play around with this a bit, but over all you should find the process very straightforward. Once you&#8217;ve added all five columns, your table should look similar to the one shown in Figure 15. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-0d00761d-66ee-419a-a586-2ee71785d350.jpeg\" alt=\"1547-0d00761d-66ee-419a-a586-2ee71785d35\" \/><\/p>\n<p class=\"caption\">Figure 15: Adding columns to your table <\/p>\n<p>That&#8217;s all there is to adding a table to a report. You can now view the report so you can see how the table will look after the report has been deployed report. To view the report, click the <strong>View<\/strong> button at the left end of the ribbon. This will take you to the <strong>Run<\/strong> tab, as shown in Figure 16. <\/p>\n<p class=\"illustration\"><img decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/imported\/1547-844fd3cf-c51b-4f74-a1a7-b00a22160b8f.jpeg\" alt=\"1547-844fd3cf-c51b-4f74-a1a7-b00a22160b8\" \/><\/p>\n<p class=\"caption\">Figure 16: Viewing the table you&#8217;ve added to your report <\/p>\n<p>As you can see, the table is now populated with the columns and rows of data from your data source, with the column headings displayed in the first row. Notice that Report Builder automatically changes compound column names to separate words. By previewing the report in this way, you know how it will be rendered once it is actually deployed. The data might change, but the format itself will remain. <\/p>\n<h2>Moving Ahead with Report Builder<\/h2>\n<p>Of course, the way the table is currently displayed in the report is fairly inadequate. Although you now know how to add a data source, dataset, and table, that&#8217;s not enough to make a report something that people will want to look at. You must attend to the elements that control how the table and the rest of the report look so you&#8217;re presenting data in a readable and accessible way. In the next article, I&#8217;ll show you how to format your report to address these issue. Be sure to save the report you created here, because we&#8217;ll be building on that as we learn more about the various ways you can make your report a lot more appealing. <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Report Builder is underrated as a BI and report-authoring tool. It is a free stand-alone application from Microsoft that provides an intuitive way for anybody to create  reports from data. It uses an interface that is similar to Microsoft Office, and supports the full capabilities of SQL Server 2012 Reporting Services.  Rob Sheldon starts a short course in how to use it.&hellip;<\/p>\n","protected":false},"author":221841,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[143528],"tags":[4178,5707,5527,4379,4150,4151],"coauthors":[],"class_list":["post-1390","post","type-post","status-publish","format-standard","hentry","category-bi-sql-server","tag-bi","tag-report-builder-3-0","tag-reporting","tag-reporting-services","tag-sql","tag-sql-server"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/1390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/221841"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=1390"}],"version-history":[{"count":5,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/1390\/revisions"}],"predecessor-version":[{"id":91022,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/1390\/revisions\/91022"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=1390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=1390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=1390"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=1390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}