Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Got error message when I pull the SP into report

Status
Not open for further replies.

rajrev

Programmer
Sep 25, 2003
148
US
Hi,
We are using CR XI and DB2 database in Windows.

Using JDBC we tried to pull a stored procedre into the report which contains 2 parameters.
We got the following error:

"Failed to retrive data from the database. Details:SQL Exception:[SQL State:]07005 [Error Message:] [IBM][CLI Driver] CLI0101E The statement did not return a resutl set. SQLSTATE=07005 [Database Vendor Code: -99999]"

We checked the user access to the stored procedure. We tried through the IBM DB2 - Development Center and gave the parameter value and we got the result. But only at the time of using the sp in Crystal, we got this error.

Please let me know if you have any suggestion/questions.

Thanks,
-M
 
Try ODBC, and keep in mind that the SP must ALWAYS return a recordset, even when the SP doesn't result in any rows.

The error message implies to me that this is NOT the case.

-k
 
Thanks for your information -k. I'll check and come back.

-M
 
I checked with ODBC and I got the following error:
Database Connector Error: '42884:[IBM][CLI Driver][DB2] SQL0440N No authorized routine named "XXX.SP10" of type "" having compatible arguments was found. SQLSTATE=42884
[Database vendor Code:-440]'

By the way, at the time of checking through the IBMDB2.. I got only one record as result. !

Please let me know if you need more info.

Thanks,
-M
 
All Programms -->IBM DB2 --> Devlopment Tool --> Development Center. where we can check the SP.

If I have access to view the SP through IBM DB2 then it looks like i have rights to work on reports using that SP.

But I used the Tables. that works good. Only the SP making issues.

Pl. let me know if you have any comments.

Thanks,
-M

 
The error returned states, and the link above appears to substabtiate that the difficulty is with executing the SP with the current user.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top