Share via


設定 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 檔案總管] 尋找 <drive>:\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 檔 (依預設,該檔案位於 <drive>:\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 檔

您必須先從 RSReportServer.config 檔移除註解,才能夠處理利用 Microsoft .NET Data Provider for mySAP Business Suite 擷取資料的報表。

  1. 開啟 RSReportServer.config 檔 (依預設,該檔案位於 <drive>:\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 協助