How to get a recordset in vb to access a oracle store procedure.

I have a store procedure(sproc) that needs to be called from a VB Application. I was being told that I would have to create a PL/SQL table in my store procedure for the VB Developer to access information from my store procedure. This is beacasue he wants it as a record set. Is that the way to get info for a VB front end. My sproc is a very basic one
My sproc looks like
create or replace PROCEDURE SP_TBLINFO
(ID out TBLINFO.id%type,
ACCOUNT_NUMBER out TBLINFO.account_number%type)
AS
CURSOR TBLINFO_CURSOR IS
SELECT * FROM TBLINFO;
V_TBLINFO_CURSOR TBLINFO_CURSOR%ROWTYPE;
BEGIN
OPEN TBLINFO_CURSOR ;
Loop
FETCH TBLINFO_CURSOR INTO V_TBLINFO_CURSOR;
EXIT WHEN TBLINFO_CURSOR %NOTFOUND;
ID := V_TBLINFO_CURSOR.id;
ACCOUNT_NUMBER:= V_TBLINFO_CURSOR.account_number;
END LOOP;
CLOSE TBLINFO_CURSOR ;
END SP_TBLINFO;
Thanks.

Use a REF_CURSOR, something like the following:
create or replace package SP_TBLINFO as
CURSOR TBLINFO_CURSOR IS SELECT * FROM TBLINFO;
create type TBLINFO_CURSOR_TYPE is TBLINFO_CURSOR%ROWTYPE;
procedure PROC_TBLINFO(Info out TBLINFO_CURSOR_TYPE);
end;
create or replace package body SP_TBLINFO as
PROCEDURE PROC_TBLINFO
(Info out TBLINFO_CURSOR_TYPE)
AS
BEGIN
OPEN ACCOUNT_NUMBER as SELECT * FROM TBLINFO ;
END SP_TBLINFO;
END;
Then bind it in OO4O as ORATYPE_CURSOR.

Similar Messages

  • How to get the trial version of adobe access whether can protect content

    i submit info in
    https://www.adobe.com/cfusion/mmform/index.cfm?name=flash_access_trial_cert
    but nobody contact me..
    How to get the trial version of adobe access?
    Thanks

    Hello,
    Apologies for that!  Currently, Adobe is shut down for the holidays which is why you're seeing a delay. Adobe will resume work again on January 2nd.
    If you can private message me your contact information, I can contact our sales team to make sure they are aware of your request.
    Sent from my mobile,
    /Eric

  • Does anyone know how to get an application you had once without using App Store?

    Does anyone know how to get an application you had once without using App Store?
    Because I'm underage and I couldn't get it back.
    I just want it back, I'm not going to use any money in App Store...

    When you say you "had it once", how did you get it then?  The App Store has only been around for a few years, so there are lots of apps out there that you would once get from the developer, but now they're only available on the App store.  Which app(s) are you referring to? 

  • How to get a list of most fragmented tables in Oracle?

    Is there an SQL on how to get a list of most fragmented tables in Oracle DBMS?

    Thanks! I would just like to ask you, what do the negative values mean in wasted space?
    Is there an easy way to improve defragmentation state?
    TABLE NAME     SIZE     ACTUAL DATA     WASTER SPACE
    TREE     0     0     0
    GC_S     3744     4651.9     -907.9
    TRAIL     104     113.04     -9.04
    ASSOCIATION_RULES     272     353     -81
    ATTRIBUTES     1728     2528.12     -800.12
    AUDITACTION     128     208.48     -80.48
    DV     18608     36266.47     -17658.47
    S134     728     903.08     -175.08
    A178     344     518.75     -174.75
    S129     728     896.48     -168.48
    AGS_NODES     2864     4510.33     -1646.33
    S149     472     633.79     -161.79
    S127     728     871.62     -143.62
    tu     2232     3619.76     -1387.76
    PCd_DATA     3112     4371.75     -1259.75

  • I keep getting a -42408 error trying to access the iTunes store since being in China

    I keep getting a -42408 error trying to access the iTunes store since being in China, back now in the UK and the problem has stuck, help!

    Danny...
    access the iTunes store since being in China, back now in the UK
    In case you aren't aware your credit or debit card biling information must be associated with the same country where you reside.
    The Complete Guide to Using the iTunes Store | iLounge Article

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to get a HttpConnection by a WAP access point over GPRS

    Generally,every phone's WAP browser can get to every wap site by a WAP access point,and every phone can get a connection by an internet access point in J2ME too.
    But in J2ME,If APN configuration is a WAP access point,Nokia3100/6100/3650 can be successful to get a connection generally,and SonyEricsson's phone don't work.
    I'm in Philippines and use Globe Telecom's SIM card.Globe's WAP APN is "www.globe.com.ph/ewap.globe.com.ph", and internet APN is "www.globe.com.ph".
    If APN configuration is a WAP access point(www.globe.com.ph),My phone(SonyEricsson's P910C) don't work.
    following code:
    HttpConnection conn = (HttpConnection) Connector.open(url, Connector.READ_WRITE, true);
    conn.setRequestProperty("Connection", "close");
    conn.setRequestMethod(HttpConnection.GET);
    conn.setRequestProperty("User-Agent","Profile/MIDP-2.0, Configuration/CLDC-1.0");
    InputStream is = new DataInputStream(c.openInputStream());
    How to do to be able to make every phone get a connection by a WAP access point(www.globe.com.ph) in Philippines.
    For example, In China, I can set proxy property to make every phone work by a WAP access point(CMWAP).
    following code:
    //"10.0.0.172" is China Mobile's WAP gateway proxy
    HttpConnection conn = (HttpConnection) Connector.open("http://10.0.0.172:80"+URI, Connector.READ_WRITE, true);
    conn.setRequestProperty("X-Online-Host", host);
    is = conn.openInputStream();
    Reference:
    http://www.reqwireless.com/apns.html
    http://forum.java.sun.com/thread.jspa?forumID=76&threadID=509365
    http://forum.java.sun.com/thread.jspa?forumID=76&threadID=538294

    i can load my jar file in my mobile through live IP.
    it works properly when simple text,list, or any features of the MIDP
    or j2me but when i call the servlet from midlet at that time
    "java.io.exception' is fired on the mobile ...
    so please help me for that.
    why it gives us an error like this .?
    we used live ip for the communication but it gives error like this.
    i also run the application on emulator it works properly through
    the live IP but when i access from jar file in the mobile it gives
    me error.
    plz help me.
    if u have any contact no then tell me . i can call u later on.
    my mobile no is 9879236686
    my mail address is [email protected]
    u can call me also any time.

  • How to get sideload product key in order to deploy windows store app into Windows 8 pro and windows RT

    From where can i get the Windows 8 sideload product key and the process how to get it .please explain in detail .

    I was able to resolve my issue once I worked with Microsoft Professional Services.  Here are the steps needed to deploy a Windows 8 Store app for anyone else looking for help on this.
    Create your app package in Visual Studio
        https://technet.microsoft.com/en-us/windows/jj874388.aspx
    Create an app certificate using PowerShell as administrator, here is one way to do it.
        https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832%28v=vs.85%29.aspx
    Install the app on the device
        https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832%28v=vs.85%29.aspx
    Ensure Device has the correct GP settings
        http://blogs.technet.com/b/scd-odtsp/archive/2012/09/27/windows-8-sideloading-requirements.aspx
    Install the application on the device
        Refer to Sideload the app for user section
        https://technet.microsoft.com/en-us/windows/jj874388.aspx
    * If you run your app now you should get an error, this is because you have not installed a Sideloading Key
    And the missing piece of the puzzle What is a Sideload key and how can I get one?
    * Documentation on this is confusing so here is what I needed to know and found out
        Sideload key is a product key that is needed to be added to the device so that it can use Windows 8 apps that are not from the Store
        It is not a requirement to have the machine joined to the domain or have Windows Enterprise installed on it. In my case my target was a Windows 8.0 Pro tablet.
        You do not need Windows 8.1 to use sideloading it will work on Windows 8.0 as well
        You can purchase a key from a Third Party Distributor but you will need to know what to ask for
        Ask for a Windows 8 Sideloading Key, Sometimes referred to as a Windows 8 Embedded Sideloading product key
        They cost about $100.00 a pop but they sell them as a Volume License so the minimum you can by is 5.
        However in my case it turned out that my company had an Enterprise Sideloading License, I just needed to know who to ask and what to ask for.
        Once you get your xxxxx-xxxxx- Slideloading key from the distributor here are the steps to installing it on the device (Section 2 Step 3)
        http://blogs.msdn.com/b/micham/archive/2014/05/30/sideloading-store-apps-to-windows-8-1-devices.aspx
    Once I installed that my application worked.

  • How to get the max total sale by date on every store

    I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date

    Hi,
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
    Hjava wrote:
    I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date
    Do you mean you want to see the store_id that had the maximum total sale?
    In general, this can be done with a Top-N Query, using an analytic function such as RANK.  For an example, see http://forums.oracle.com/forums/thread.jspa?messageID=3739610
    If you only want the date, the maximum total from that date, and 1 column from the same row with the maximum (e.g. store_id), then you might be able to use the aggregate LAST function instead.
    What results do you want in case of a tie?  (That is, if 2 or mote store_ids have the same total sale on a given date, and no other store_id has a higher total.)

  • How to get a refund on something you bought from app store

    so this kid accidentally bought this 25$ and so im tryna get my money back because he bought something on this game, like amoney from the game so i need help please

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • How to pass values to Oracle store procedure in Crystal Report

    Hi all,
    I am newbie on passing values to stored procedure parameters. I created a Crystal Report using the Crystal Report wiward with PULL method and data come from Oracle stored procedure. In an ASP.NET page, I have stored two values in Session and need to pass them as input parameters to Oracle stored procedure to print the report. In Crystal reports 2010 once you connect to a stored-procedure as data source, it automatically creates the parameter fields with Crytal Report Viewer. Please show me how I pass values to store procedure at runtime automatically.
            'Set the parametter value
            myReport.SetParameterValue("@P_COURSE", "CoursetNo")
            myReport.SetParameterValue("@P_CLASS", "ClassNo")
        End Sub
    I tried to apply above codes from Brian Bischof book but display the error from the following lines:
            myReport.SetParameterValue("@P_COURSE", "CoursetNo")
            myReport.SetParameterValue("@P_CLASS", "ClassNo")
    I also enclosed my code. Any experts, please let me know anything wrongs on my code . I tried several methods that searching via google, but did not solve my issues. Thanks.
    Edited by: avt2K7 on Mar 15, 2011 7:02 AM

    Hi,
    Thank you for your response. Here are the detailed code and error as following:
    Please show what I am missing in my below VB.NET codes:
    ===========================================================================================
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            LogonToTables("username", "password", "servername", "")
        End Sub
        Private Sub LogonToTables(ByVal myUserId As String, ByVal myPassword As String, ByVal myServerName As String, ByVal myDataBaseName As String)
            Dim Course, Class As String
            Course = Session.Item("CourseNumber"))
            Class = Session.Item("ClassNumber"))
            Dim myReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            myReport.Load(Server.MapPath("CrystalReport1.rpt"))
            Dim myTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            'Set the database properties and security credentials
            Dim myConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
            myConnectionInfo.ServerName = "servername"
            myConnectionInfo.DatabaseName = ""
            myConnectionInfo.UserID = "username"
            myConnectionInfo.Password = "password"
            'Apply the ConnectionInfo to the report tables
            Dim myTables = myReport.Database.Tables
            For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                myTableLogonInfo = myTable.LogOnInfo
                myTableLogonInfo.ConnectionInfo = myConnectionInfo
                myTable.ApplyLogOnInfo(myTableLogonInfo)
            Next
            'Set the parametter value to Crystal Report parameter named P_COURSE and P_CLASS
            myReport.SetParameterValue("@P_COURSE", "Course")
            myReport.SetParameterValue("@P_CLASS", "Class")
        End Sub
    =================================================================================
    I put a break point to debug but display the error at the following lines:
            myReport.SetParameterValue("@P_COURSE", "Course")
            myReport.SetParameterValue("@P_CLASS", "Class")
    Eventhough, if I set a specific value to Course=1000 and Class = math and still receive the error:
    Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
    I tried several sources from Google search but it is not working. I really appreciate any detailed code either in C# or VB.NET to solve my issues. Thanks in advance.

  • How to get a recordset defined by primarykeys using the LabVIEW Database Connectivity Toolset?

    Hi folks.
    I'm using LabVIEW with the LabVIEW Db Toolset and Microsoft Access. The table contains 18 columns with a growing nr of rows.Now I want to get the whole recordset containing all columns defined by my primary keys. My SQL-statement is sofar:
    SELECT ALL FROM IMPULS_STATOR WHERE FAB = [string] AND LDATE = [datestring] AND ADATE = [datestring]
    But every time I end up with an error message saying "Invalid string: specified field does not exist or contains an unsupported character". I mutated the statement several times, adding or removing spaces, colons, etc.
    What am I doing wrong?
    Thanks in advance

    Thanks, Dennis.
    Unfortunately, I`m still encountering some problems with the DateValue function. My date/time field has this format: yyyy-mm-dd hh:nn:ss . If I use DateValue, nothing will be returned. Changing the format to yyyy-mm-dd in the Access DB didn`t help and I do need the time. Combining DateValue and TimeValue let to several errors. Using only TimeValue did not help me out. LabVIEW does not indicate errors anymore, therefore the syntax should be fine. But I don`t get any information back from my database.

  • How to get .ocp file when converting sql database to oracle database?

    Hi all,
    Hope doing well,
    sir i am using sql developer tool for migration from sql server to oracle
    i am using this offline but i don't know how to create .ocp file
    please help me.
    it's urgent
    waiting for reply.
    thanks in advance.

    The OCP files are created during OFFLINE Migration. In SQl Developer click on Tools -> Migration -> Create Database Capture Scripts. Choose an output directory, make sure to select the correct platform (Windows) and select MS SQl Server from the drop down list.
    You'll get in the directory specified earlier the batch and OCP files required to create the source model using the offline method.
    Have a look at this web site: http://www.oracle.com/technetwork/products/migration/sqlserver-095136.html
    It contains more info including a link to a video demonstrating the offline capture method.

  • How to get that high-tech look from access connections

    how do i get that
    Message Edited by rachelroth on 07-21-2009 12:33 PM
    Solved!
    Go to Solution.

    figured it out THANK YOU VERY MUCH FOR HELPING its version 5.30 
    Message Edited by rachelroth on 07-21-2009 12:36 PM

  • How to get all parameter names along with their values in stored procedure which is being executed

    Im using sql server 2012, is there any possible way to get all the parameters of a stored procedure along with the values passed to it.
    I need these things to build a xml. I mean this should happen in the procedure which being executed and it should be common for all the procedures.
    For example, let us suppose we have to procedures,
    uspSave, @name='test' @age=20
    uspDelete @id=2
    now in uspSave procedure, i need to get @name, @age and the values 'test', 20 and in uspDelete, i should get @id with value 2.
    For getting the column names, i tried this,
    select parameter_name from information_schema.PARAMETERS where specific_name=OBJECT_NAME(@@procid)
    now is it possible to loop through the result of above query and can we get the values.

    I think  you need running SQL Server Profiler to capture this info even in SQL Server 2012.
    Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/
    Blog : MS SQL Development and Optimization
    Blog : Large
    scale of database and cleansing

Maybe you are looking for

  • Questions on sending audio tracks from a short film into Audition for mastering

    Ok so basically I have a 4 minute film in which i need to master the audio. I have a few quesions as to how to best go about this. 1: Some of the clips came with 2 tracks off the camera yet they are both labeled channel 1 on the beginning of the clip

  • How to set wireless security for Officejet Pro L7750 printer?

    Hi there. I connected Officejet Pro L7750 to wireless broadband router and all is well. Only problem is that all computers on the network can install the drivers and connect to the printer. How do I limit the printing capabilities only to 2 computers

  • How to filter on attribute?

    Hi, Can anyone please tell me how to set up characteristic restriction on a characteristic's attribute, not the characteristic itself in BEx Query Designer? Thanks for your help.

  • Help!! Select button suddenly doesn't work!

    My ipod mini's select button stopped working. After I reset it the button works if i hit it and then toggle the hold button back and forth. suggestions!? Its 8 months old but I bought it in the states and now I'm in Sweden. Don't know if I can get it

  • SSDT/SSIS 2012 project won't deploy to SSISDB on remote machine URGENT

    hi all getting the incredibly frustrating error message.  I've tried changing SQL Accounts etc. but to no avail.  What are the requirements to be able to deploy a project??? i have created ssisdb, and have deployed in the past but now it is not worki