If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Problems with OLE DB informix and stored procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-04, 11:28
topekk topekk is offline
Registered User
 
Join Date: May 2004
Posts: 5
Problems with OLE DB informix and stored procedures

I am trying to run a report through Crystal Report Application server that keeps crashing with the following Informix error:

Query Engine Error: 'Error -404: The cursor or statement is not available.

The reports work fine in 8.5 desktopviewer and in the version 10 report designer. The problematic report uses a complicated stored procedure with 87 variables and 7 passed parameters. The database is Informix 7.30 and the reports use a direct connection ("Informix Online Server" in Crystal designer).


One of the things that Crystal advised us to try was use to OLE DB. I installed an OLE DB provider from the Informix 2.81.TC3 Client SDK. I made a udl file using GibSoft db utilities and can connect to the database using that package and crystal. I can execute queries and can use simple sql to return reports in Crystal with the OLE DB connection.

The problem is with stored procedures while I can execute a stored procedure dirctly in sql window using execute procedure utilites('blah','blah','blah',...) I can't browse the procedure properly with the DB package and adding the procedure to a report does not show the return values. This leads me to believe there is some problem with OLE DB and stored procedures with Informix 7.30. I am looking for insight into this problem and possible work arounds for crystal.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-26-04, 08:32
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please test at times passes that a commit closes cursores that were previously open.
Gustavo.
Reply With Quote
  #3 (permalink)  
Old 11-30-04, 10:47
topekk topekk is offline
Registered User
 
Join Date: May 2004
Posts: 5
I think the problem is more basic then that. When trying to browsing stored procedures using the OLE DB connection I am not getting parameter values expressed correctly and don't see columns for return values at all.

Both ODBC and the native connection provide the right information about a simple stored procedures parameter and return values.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On