Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 15th, 2004, 12:36 PM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Returning record in stored function with ADO

Hello!
I need help because i have to use a stored function that returning a record type, for example:

CREATE OR REPLACE PACKAGE Pck AS
TYPE Rec AS RECORD
...
END;
FUNCTION Proc (p_in IN NUMBER, p_out OUT VARCHAR2(5)) RETURN Rec;
END Pck;

CREATE OR REPLACE PACKAGE BODY Pck AS
FUNCTION Proc (p_in IN NUMBER, p_out OUT VARCHAR2(5)) RETURN Rec IS
BEGIN
...
END
END Pck;

And a fragment VB:

Set cmd = New ADODB.Command
With cmd

    .ActiveConnection = connLocal
    .CommandText = "Pck.Proc"
    .CommandType = adCmdStoredProc
    .Parameters.Append .CreateParameter _
                       ("in",adInteger,adParamInput, ,data)
    .Parameters.Append .CreateParameter( _
                            "out", _
                             ?????? :(, _
                             adParamReturnValue)

    .Execute
End With 'cmd

Set cmd = Nothing

I don't know that type data to use, can you help me?
Thanks.


 


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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning a value (stored procedure scandalous ASP.NET 2.0 Basics 9 November 7th, 2007 03:41 PM
Snapshot recordset returning only 1 record probitaille Access VBA 2 September 6th, 2006 06:16 PM
add new record to ADO recordset via stored proc tbullard Access 0 January 20th, 2006 02:35 PM
Problems With returning records through ADO marko_one Classic ASP Databases 5 September 30th, 2004 04:06 AM
Returning resultset to ADO.NET dataset gp_mk Oracle 3 December 22nd, 2003 10:44 AM



All times are GMT -4. The time now is 08:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.