如何确定报告服务器上的 SQL Server 版本

发布于 2024-07-14 16:05:23 字数 284 浏览 5 评论 0原文

我们所有的报告服务生产实例都分为 Web 服务器组件和报告数据库组件。

我知道您可以通过以下 TSQL 检测数据库服务器上的 SQL Server 实例:

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

但是,在我们的示例中,报告服务器没有安装数据库服务器组件。 那么在这种情况下如何检测安装了什么服务包呢?

All of our production instances of reporting services are split into the web server components and the reports database components.

I know that you can detect the instance of SQL Server on a database server by the following TSQL:

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

However, in our case, the reporting servers do not have a database server components installed. So how do I detect what service pack is installed in this situation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

暖阳 2024-07-21 16:05:23

手动或使用网络抓取,浏览至

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);
        }
    }
}

Manually, or using web scraping, browse to

http://reportServerName/ReportServer 

and the version number is at the bottom of the page.

Or programatically:

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);
        }
    }
}
水溶 2024-07-21 16:05:23

在您的浏览器中,转到“

http://<reportserverName>/reportserver

只需查看页面底部”

In your browser go to

http://<reportserverName>/reportserver

Just look at the bottom of the page

断念 2024-07-21 16:05:23

Reporting Services 配置工具详细介绍了正在运行的 SQL Server 版本。

The Reporting Services Configuration Tool details the SQL Server version running.

几味少女 2024-07-21 16:05:23

在 2017 年的现代版本中,“帮助 | 关于”效果很好。

In the modern 2017 version, "Help | About" works great.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文