3

レポート サービスのすべての実稼働インスタンスは、Web サーバー コンポーネントとレポート データベース コンポーネントに分割されます。

次の TSQL を使用して、データベース サーバー上の SQL Server のインスタンスを検出できることを知っています。

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'),
SERVERPROPERTY ('edition')

ただし、この場合、レポート サーバーにはデータベース サーバー コンポーネントがインストールされていません。では、この状況でどのサービス パックがインストールされているかを検出するにはどうすればよいでしょうか。

4

4 に答える 4

10

手動で、または Web スクレイピングを使用して、以下を参照します。

http://reportServerName/ReportServer 

バージョン番号はページの下部にあります。

またはプログラムで:

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

class Sample
{
    static void Main(string[] args)
    {
        // Create proxy object and set service 
        // credentials to integrated
        ReportingService2006 rs = new ReportingService2006();
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
            "ReportService2006.asmx";
        rs.Credentials = 
            System.Net.CredentialCache.DefaultCredentials;

        try
        {
            // Set the server info header 
            rs.ServerInfoHeaderValue = new ServerInfoHeader();

            // Make a call to the Web service
            CatalogItem[] items = rs.ListChildren("/");

            // Output the server version and edition to the console
            Console.WriteLine("Server version: {0}",
               rs.ServerInfoHeaderValue.ReportServerVersionNumber);
            Console.WriteLine("Server edition: {0}",
               rs.ServerInfoHeaderValue.ReportServerEdition);
        }

        catch (Exception e)
        {
            Console.WriteLine(e.Message);
        }
    }
}
于 2009-03-09T13:21:15.450 に答える
4

ブラウザで次の場所に移動します

http://<reportserverName>/reportserver

ページの一番下を見てください

于 2009-03-24T11:07:29.963 に答える
1

Reporting Services 構成ツールは、実行中の SQL Server のバージョンの詳細を示します。

于 2009-03-09T13:30:39.110 に答える