You can use the procedures in this topic to create a simple report model that users in your site can use to build ad-hoc model-based reports based on data in a single view of the Configuration Manager 2007 R2 database. You will create a report model that presents information about the client computers in your site to the report author. This information will be taken from the V_R_System view in the Configuration Manager 2007 database.

On the computer where you will perform these procedures, ensure that you have installed SQL Server Business Intelligence Development Studio and that the computer has network connectivity to the reporting services point server. Refer to your SQL Server documentation for detailed information about SQL Server Business Intelligence Development Studio.

Note
The information in this topic applies only to Configuration Manager 2007 R2 and Configuration Manager 2007 R3.

To create a report model, you must complete the following tasks:

To create the report model project

  1. From the Windows Start menu, click Microsoft SQL Server 2005, and then click SQL Server Business Intelligence Development Studio.

  2. After SQL Server Business Intelligence Development Studio opens in Microsoft Visual Studio, click File, click New, and then click Project.

  3. In the New Project dialog box, select Report Model Project in the Templates list.

  4. In the Name field, type Simple_Model.

  5. To create the report model project, click OK.

  6. The Simple_Model solution is displayed in Solution Explorer.

    Note
    If you cannot see the Solution Explorer pane, click View, and then click Solution Explorer.

To define the data source for the report model

  1. In the Solution Explorer pane of SQL Server Business Intelligence Development Studio, right-click Data Sources, and then click Add New Data Source.

  2. On the Welcome to the Data Source Wizard page, click Next.

  3. On the Select how to define the connection page, verify that Create a data source based on an existing or new connection is selected, and then click New.

  4. In the Connection Manager dialog box, specify the following connection properties for the data source:

    1. Server name—Type in the name of your Configuration Manager 2007 database server, or select it from the drop-down list. If you are working with a named instance rather than the default instance, type <database server>\<instance name>.

    2. Select Use Windows Authentication.

    3. In the Select or enter a database name list box, select the name of your Configuration Manager 2007 database.

  5. To verify the database connection, click Test Connection.

  6. If the connection succeeds, click OK to close the Connection Manager dialog box. If the connection does not succeed, verify that the information you entered is correct, and then click Test Connection again.

  7. On the Select how to define the connection page, verify that Create a data source based on an existing or new connection is selected, verify that the data source you have just specified is selected in the Data connections list box, and then click Next.

  8. In the Data source name field, type Simple_Model, and then click Finish.

  9. The data source Simple_Model.ds will now be displayed in Solution Explorer under the Data Sources node.

    Note
    To edit the properties of an existing data source, double-click the data source in the Data Sources folder of the Solution Explorer pane to display the data source properties in Data Source Designer.

To define the data source view for the report model

  1. In Solution Explorer, right-click Data Source Views, and then click Add New Data Source View.

  2. On the Welcome to the Data Source View Wizard page, click Next. The Select a Data Source page is displayed.

  3. In the Relational Data Sources window, verify that the Simple_Model data source is selected, and then click Next.

  4. On the Select Tables and Views page, select the following view from the Available objects list to be used in the report model: dbo.v_R_System.

  5. After selecting the view, click > to transfer the object to the Included objects list.

  6. If the Name Matching page appears, accept the default selections, and click Next.

  7. When you have selected the objects you require, click Next, and then type Simple_Model in the Name field.

  8. Click Finish. The Simple_Model.dsv data source view is displayed in the Data Source Views folder of Solution Explorer.

To create the report model

  1. In Solution Explorer, right-click Report Models, and then click Add New Report Model.

  2. On the Welcome to the Report Model Wizard page, click Next.

  3. On the Select Data Source Views page, verify that Simple_Model.dsv is selected in the Available data source views list, and then click Next.

  4. On the Select report model generation rules page, accept the default values, and then click Next.

  5. On the Collect Model Statistics page, verify that Update model statistics before generating is selected, and then click Next.

  6. On the Completing the Wizard page, verify that Simple_Model is displayed in the Name field.

  7. To complete the wizard and create the report model, click Run.

  8. To exit the wizard, click Finish. The report model is shown in the design window.

To publish the report model (for use in SQL Reporting Services)

  1. In Solution Explorer, right-click the Simple_Model.smdl, and then click Deploy.

  2. Examine the deployment status at the lower left corner of the SQL Server Business Intelligence Development Studio window. When the deployment has finished, Deploy Succeeded will be displayed. If the deployment fails, the reason for the failure will be shown in the Output window. The new report model will now be available from your SQL Reporting Services Web site.

  3. Click File, click Save All, and then close SQL Server Business Intelligence Development Studio.

To deploy the report model to Configuration Manager

  1. To deploy the report model for use in the Configuration Manager console, see Step-by-Step Guide to Deploying a Report Model to Configuration Manager.

See Also