存储过程在 table 查看器和模型中不呈现任何数据

Stored Procedure renders no data in table viewer and model

我在 qlikview 中有一个模型,其中包含 DB2 文件、xls 文件和 SQL 视图。 我所有的观点return没有错误,都有数据。

我对某些数据使用了存储过程(某天没有数据的项目列表。SP 使用插入临时 table、游标和连接)。 在 SQL server management studio returns 结果正常 存储过程的示例结果

在 Qlikview 中,我尝试了:

centrosCostosSinDatos:
SQL GRANT Execute ON SP_nameStoredProcedure to qlikviewReader;

这个 return 没有数据,在 table 查看器中没有 table,没有维度,什么都没有,但是,我没有错误。

With load,有错误Field not found -

centrosCostosSinDatos:
LOAD codigoCentroCosto,
fecha;
SQL GRANT Execute ON SP_nameStoredProcedure to qlikviewReader;

使用 load *,我有错误 错误:文件 extdata.cpp。第 2903 行

感谢提前

今天又考了

更改了我的存储过程以使用 table 而不是时间 table。在执行中,table 没有行。

我在数据库服务器中授予用户(qlikviewReader)执行权限,并更改执行行:

centrosCostosSinDatos:
SQL GRANT Execute ON SP_nameStoredProcedure to qlikviewReader;

centrosCostosSinDatos:
LOAD codigoCentroCosto as codeCentroCosto, 
fecha;
SQL execute SP_centrosCostosSinDatos;

并且有效。加载 * 也有效。

在我的例子中,授予执行无效此用户的存储过程权限有效