A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access pass-through query to Oracle 10g stored procedure - results



 
 
Thread Tools Display Modes
  #1  
Old December 10th, 2009, 05:02 PM posted to microsoft.public.access.queries
Blue and Silver
external usenet poster
 
Posts: 1
Default Access pass-through query to Oracle 10g stored procedure - results

I am able to create an Access 2003 pass-through query to Oracle 10g that uses
a SELECT statement; it returns a resultset. But, I cannot get a resultset
when I try to execute an Oracle stored procedure in a pass-through. I set the
stored procedure up with a SYS_REFCURSOR in it. The SP must have a reference
cursor to return the resultset. How do I execute this in Access 2003? I have
used the following syntax with IN date parameters: EXEC
HREMPINFO('1-Jan-1900', '31-Dec-2005'); I also tried putting the name of the
parameter between a begin...end block in the pass-through query, that didn't
work. I believe the problem is that the SP ref_cursor is looking for a local
variable or ref_cursor to send the resultset to. How do I set this up? Thanks
in advance.
  #2  
Old December 11th, 2009, 03:18 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Access pass-through query to Oracle 10g stored procedure - results

Probably your best bet is to have a view created in Oracle using the
SYS_REFCURSOR then using a pass-through query against the view.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Blue and Silver" wrote:

I am able to create an Access 2003 pass-through query to Oracle 10g that uses
a SELECT statement; it returns a resultset. But, I cannot get a resultset
when I try to execute an Oracle stored procedure in a pass-through. I set the
stored procedure up with a SYS_REFCURSOR in it. The SP must have a reference
cursor to return the resultset. How do I execute this in Access 2003? I have
used the following syntax with IN date parameters: EXEC
HREMPINFO('1-Jan-1900', '31-Dec-2005'); I also tried putting the name of the
parameter between a begin...end block in the pass-through query, that didn't
work. I believe the problem is that the SP ref_cursor is looking for a local
variable or ref_cursor to send the resultset to. How do I set this up? Thanks
in advance.

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.