1

現在、サブスクリプション イベントを発生させるために、レポート サーバーで CLR ストアド プロシージャを作成しています。ユーザー「NT AUTHORITY\SYSTEM」にアクセス許可がないというエラーがスローされるため、FireEvent を使用できません。私が探している許可が Generate Event であることは知っていますが、私の人生ではそれを見つけることができません。

これが私のエラーとCLRストアドプロシージャです。助けていただければ幸いです。

ストアド プロシージャはレポート サーバー上にあります。レポート サーバーは Windows 認証を使用します。SQL Server 2008 R2 (SP1) の完全な管理者権限を持っています。

public partial class StoredProcedures
{
    [Microsoft.SqlServer.Server.SqlProcedure]
    public static void CTest()
    {
        ReportingService2005 rs = new ReportingService2005();
        rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
        rs.Url = "http://erer332/ReportServer/ReportService2005.asmx";
        Subscription[] lSubs;
        try
        {
            lSubs = rs.ListSubscriptions("/WFM Graphical Reports/Sales Order Formats by Company", null);
            rs.FireEvent("TimedSubscription", lSubs[0].SubscriptionID);
        }
        catch (SoapException e)
        {
            SqlContext.Pipe.Send(e.Detail.InnerXml);
        }
    }
};



<ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">
    rsAccessDenied
</ErrorCode>
<HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">
    400
</HttpStatus>
<Message xmlns="http://www.microsoft.com/sql/reportingservices">
    The permissions granted to user 'NT AUTHORITY\SYSTEM' are insufficient for performing this operation.
</Message>
<HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">
    http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=10.50.2500.0
</HelpLink>
<ProductName xmlns="http://www.microsoft.com/sql/reportingservices">
    Microsoft SQL Server Reporting Services
</ProductName>
<ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">
    10.50.2500.0
</ProductVersion>
<ProductLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">
   127
</ProductLocaleId>
<OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">
    OsIndependent
</OperatingSystem>
<CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">
    1033
</CountryLocaleId>
<MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices">
    <Source>
        ReportingServicesLibrary
    </Source>
    <Message msrs:ErrorCode="rsAccessDenied" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=10.50.2500.0" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">
        The permissions granted to user 'NT AUTHORITY\SYSTEM' are insufficient for performing this operation.
    </Message>
</MoreInformation>
<Warnings xmlns="http://www.microsoft.com/sql/reportingservices" />`
4

1 に答える 1

2

わかりました。Reporting Services サーバーにリモート接続し、そこから SSMS を使用して接続する必要がありました。そこから必要なアクセス許可を付与できます。SSMS 上の自分のコンピューターから、Report Server でパーミッションを探し回っていましたが、Reporting Services が表示されませんでした。

紛らわしい!

于 2012-06-29T17:09:04.163 に答える