Firebird Database Stored Procedure in SSRS - not loading the stored procedure

孤者浪人 提交于 2020-03-28 03:45:15

问题


I have a stored procedure running in Firebird Database. Now I try to use this stored procedure to build a report in the SSRS 2012 (SSDT) Report Designer.

After I connect to the dataset, and when I choose the Query Type as 'Stored Procedure', and type the name of my stored procedure, and then go to the Query Designer, and click ! (F5), I get the following error:

TITLE: Microsoft SQL Server Report Designer
------------------------------

An error occurred while executing the query.
ERROR [HY000] [ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 1 [sproc name] 

------------------------------
ADDITIONAL INFORMATION:

ERROR [HY000] [ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 1 [sproc name] (OdbcFb)

------------------------------
BUTTONS:

OK
------------------------------

Any idea on how to resolve this? If its a T-SQL stored procedure, then it will be no issue; in this case, Firebird database connects to the SSRS via a 32-bit System ODBC connection.

When I proceed and click ok for everything, I get this error (after I exit the Query Designer), in the Dataset Properties tab:

Could not update a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct.

The ODBC connection between SSRS and Firebird works fine. In fact I am able to run many queries as ad-hoc ones, but when I use the queries as stored procedure, then this issue pops up.

Any suggestion on how to handle Firebird stored procedures in SSRS will be greatly appreciated.

来源:https://stackoverflow.com/questions/32153793/firebird-database-stored-procedure-in-ssrs-not-loading-the-stored-procedure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!