连接到 Tableau 中的存储过程时出错

Error while connecting to stored procedure in Tableau

我在尝试连接到存储过程作为数据源时遇到此错误:

Unable to complete action
The stored procedure returned no results. The fields don't have column names, or the data in the fields is not a supported data type

但是数据库中的相同存储过程returns数据。对此有什么想法吗?

请尝试在存储过程的开头添加 SET NOCOUNT ON 代码。

类似

CREATE PROCEDURE [dbo].[ZZZ_THIS_IS_MY_SP]

    @p                  INT

AS
BEGIN
    SET NOCOUNT ON

    DECLARE @Var1           NVARCHAR(20)
    DECLARE @Var2               DATETIME

    -- All other instructions...
END