Reporting services SSRS-在报告中显示数据源服务器名称
在我的ssrs报告中,我想显示数据源使用的服务器的名称。有没有办法访问和显示这些信息 您可以使用Reporting services SSRS-在报告中显示数据源服务器名称,reporting-services,Reporting Services,在我的ssrs报告中,我想显示数据源使用的服务器的名称。有没有办法访问和显示这些信息 您可以使用@@ServerName内置函数将其添加为查询的一部分(或为其创建新查询): SELECT @@ServerName AS ServerName, * FROM MyTable 或作为其自身数据集中的独立查询: SELECT @@ServerName AS ServerName 然后在文本框中使用以下公式: =First(Fields!ServerName.Value, "DataSet1")
@@ServerName
内置函数将其添加为查询的一部分(或为其创建新查询):
SELECT @@ServerName AS ServerName, *
FROM MyTable
或作为其自身数据集中的独立查询:
SELECT @@ServerName AS ServerName
然后在文本框中使用以下公式:
=First(Fields!ServerName.Value, "DataSet1")
您可以使用
@@ServerName
内置函数将其添加为查询的一部分(或为其创建新查询):
SELECT @@ServerName AS ServerName, *
FROM MyTable
或作为其自身数据集中的独立查询:
SELECT @@ServerName AS ServerName
然后在文本框中使用以下公式:
=First(Fields!ServerName.Value, "DataSet1")
您可以使用
@@ServerName
内置函数将其添加为查询的一部分(或为其创建新查询):
SELECT @@ServerName AS ServerName, *
FROM MyTable
或作为其自身数据集中的独立查询:
SELECT @@ServerName AS ServerName
然后在文本框中使用以下公式:
=First(Fields!ServerName.Value, "DataSet1")
您可以使用
@@ServerName
内置函数将其添加为查询的一部分(或为其创建新查询):
SELECT @@ServerName AS ServerName, *
FROM MyTable
或作为其自身数据集中的独立查询:
SELECT @@ServerName AS ServerName
然后在文本框中使用以下公式:
=First(Fields!ServerName.Value, "DataSet1")