将 Reporting Services 配置为使用 Microsoft .NET Data Provider for mySAP Business Suite

新建日期: 2005 年 12 月 5 日

SQL Server 2005 包括对 Microsoft .NET Data Provider for mySAP Business Suite 的支持,这样便可在 Integration Services 包和 Reporting Services 报表中检索和使用 SAP 数据。

若要使用数据访问接口,必须安装此接口并对其进行配置。Microsoft .NET Data Provider for mySAP Business Suite 作为单独的下载内容提供,您可以将其安装在现有的 SQL Server 2005 实例中。有关数据访问接口的详细信息(包括安装说明和使用示例),请参阅 Microsoft .NET Data Provider for mySAP Business Suite

若要在报表服务器中运行数据访问接口并在报表设计器的设计视图中引用此接口,必须执行下列操作:

  • 向报表设计器和报表服务器策略配置文件中添加代码组以授予数据访问接口相关权限。这些代码组不会默认指定。
  • 修改 RSReportDesigner.config 文件和 RSReportServer.config 文件。上述每种配置文件都包括指定 Microsoft .NET Data Provider for mySAP Business Suite 的设置。默认情况下,每个文件中的配置设置都被注释掉。

在计算机上安装完 Microsoft .NET Data Provider for mySAP Business Suite 后,请按照本主题中提供的分步说明在 Reporting Services 安装中部署数据访问接口。

向 RSPreviewPolicy.config 文件中添加代码组

若要使用 Full Trust 运行 Microsoft .NET Data Provider for mySAP Business Suite,您必须向报表设计器策略文件中添加代码组。

  1. 打开 RSPreviewPolicy.config 文件,该文件默认位于 C:\ Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies 中。

  2. 添加以下代码组:

    <CodeGroup
        class="UnionCodeGroup"
        version="1"
        PermissionSetName="FullTrust"
        Name="Microsoft_Generic_Signing"
        Description="This code group grants code signed with the generic Microsoft key full trust.  Used by the Microsoft .Net Data Provider for mySAP Business Suite.">
       <IMembershipCondition
         class="StrongNameMembershipCondition"
         version="1"
         PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9"
                    />
    </CodeGroup>
    
  3. 保存该文件。

修改 RSReportDesigner.config 文件。

在您生成使用 Microsoft .NET Data Provider for mySAP Business Suite 检索数据的报表定义之前,必须删除 RSReportDesigner.config 文件中两部分内的注释。

  1. 使用 Windows Explorer 找到 <驱动器>:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies。

  2. 使用文本编辑器,打开 RSReportDesigner.config 文件。

  3. 在 <Data> 部分中,删除以下条目中的注释标记(删除行首和行尾的 <!-- 和 --> 字符):

    <!-- Extension Name="SAP" Type="Microsoft.Adapter.SAP.SAPConnection,Microsoft.Adapter.SAP.SAPProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/ -->
    
  4. 在 <Designer> 部分中,删除以下条目中的注释:

    <!-- Extension Name="SAP" Type="Microsoft.ReportingServices.QueryDesigners.GenericQueryDesigner,Microsoft.ReportingServices.QueryDesigners"/ -->
    
  5. 保存该文件。

修改完配置文件后,便可将数据访问接口作为一种数据源类型使用,您可以在报表设计器的数据源对话框中选择它。若要详细了解如何指定检索 SAP 数据的连接字符串和查询,请参阅 Microsoft .NET Data Provider for mySAP Business Suite

向 RSSrvPolicy.config 文件中添加代码组

若要使用 Full Trust 运行 Microsoft .NET Data Provider for mySAP Business Suite,您必须向报表服务器策略文件中添加代码组。

  1. 打开 RSSrvPolicy.config 文件,该文件默认位于 <驱动器>:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer 中。

  2. 添加以下代码组:

    <CodeGroup
        class="UnionCodeGroup"
        version="1"
        PermissionSetName="FullTrust"
        Name="Microsoft_Generic_Signing"
       Description="This code group grants code signed with the generic Microsoft key full trust.  Used by the Microsoft .Net Data Provider for mySAP Business Suite.">
       <IMembershipCondition
         class="StrongNameMembershipCondition"
         version="1"
         PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9"
                    />
    </CodeGroup>
    
  3. 保存该文件。

修改 RSReportServer.config 文件

在您处理使用 Microsoft .NET Data Provider for mySAP Business Suite 检索数据的报表之前,必须删除 RSReportServer.config 文件中的注释。

  1. 打开 RSReportServer.config 文件,该文件默认位于 <驱动器>:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer 中。

  2. 在 <Data> 部分中,删除以下条目中的注释:

    <Extension Name="SAP" Type="Microsoft.Adapter.SAP.SAPConnection,Microsoft.Adapter.SAP.SAPProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    
  3. 保存该文件。

请参阅

概念

Reporting Services 配置文件
RSReportDesigner 配置文件
RSReportServer 配置文件

其他资源

Deploying a Data Processing Extension

帮助和信息

获取 SQL Server 2005 帮助