cancel
Showing results for 
Search instead for 
Did you mean: 

error while executing the stored procedure through sender JDBC adapter

Former Member
0 Kudos

Hi All,

I am getting below error while executing the stored procedure through sender JDBC adapter.

Database-level error reported by JDBC driver while executing statement 'exec SapgetNextEntity 'SalesOrder''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.

what is the problem? any idea to anyone...

regards

Ramesh

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Either ur sql statement is incorrect or ur database does not have appropriate data for the executed stored procedure.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

The SP is giving result when I am execting it in MSSql Server, but not in PI through CC.

regards

Ramesh V

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Problem is solved...problem is in SP only...sitting with the database people...I got to know...

regards

Rams

Former Member
0 Kudos

Hi Ramesh,

  What is the issue with the Stored Procedure and how did you resolve it. Could you please let me know. Even I am executing an SP through PI sender JDBC channel. This SP is doing some update in the database and then it is selecting the required information.

Thanks,

Sarat

Former Member
0 Kudos

Hi Ramesh,

I am facing the similar issue, can i know how this issue is resolved.

This is a production Bug, Could you please reply back ASAP.

Thanks,

--Sai

Former Member
0 Kudos

Hi

Check with the stored procedure. Some how it is not the same as the select statement.

Regards

Former Member
0 Kudos

monika

my SP is working fine in MSSql server. but not in PI...

regards

Rams..

Former Member
0 Kudos

any idea to any one about above problem

dharamveer_gaur2
Active Contributor
0 Kudos

Have to seen stored procedure limitation

Stored porcedure can not return resultset, only can return one parameter.

Try to use Refrence Cursor it will return u reference of resultset.

Former Member
0 Kudos

hi Dharamveer,

I am not getting below statement for your reply

Try to use Refrence Cursor it will return u reference of resultset.

I mention SP like this

exec SapgetNextEntity 'SalesOrder'

SapgetNextEntity -


> SP Name

SalesOrder----


> Parameter I am passing...

regards

Ramesh

dharamveer_gaur2
Active Contributor
0 Kudos

Check your connection parameter are ok

driver: oracle.jdbc.driver.OracleDriver

Connection url :jdbc:oracle:thin:@<ServerHostName>:<PortNo(1521 default)>:<SID>

Former Member
0 Kudos

Hi Dharamveer,

I am using MSSql server and its working fine when I am executing Select statement instead of SP. But getting error while executing SP.

regards

Ramesh

prateek
Active Contributor
0 Kudos

Can you provide ur SQL statement (of CC) and stored procedure code. Make sure that the stored procedure has only one SQL statement (It can have a join statement).

Regards,

Prateek

Former Member
0 Kudos

hi Prateek,

I mention SP like this

exec SapgetNextEntity 'SalesOrder'

SapgetNextEntity -


> SP Name

SalesOrder----


> Parameter I am passing...

Regards

Ramesh