Multiple proc. executions in VB with ADO

Hi !
I am migrating a VB application, from SYBASE to ORACLE. In this application, some stored proc. are called in a single "Execute" line of VB code:
strSQL = "EXEC proc_name;EXEC proc_name;EXEC proc_name..."
oCommand.Execute strSQL
This works with SYBASE, not with ORACLE (an error is returned). How can I handle that? Do I need to decompose my orders in several single "Execute"??
Thanks for your help!

You can either decompose your stored procedure calls into a series of individual stored procedure calls or you can use an anonymous PL/SQL block to execute multiple stored procedures. Which way you go will depend on how interrelated the stored procedure calls are, whether you want individual calls to be atomic or whether you want a set of calls to be an atomic operation, etc.
The anonymous PL/SQL block equivalent to your Sybase SQL statements would be-
declare
begin
  proc_name1;
  proc_name2;
  proc_name3;
end;Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • I have one apple ID and multiple family members share this with their devices.  How do we keep pics and messages separate?

    I have one apple ID and multiple family members share this with their individual devices.  How do we keep pics and messages separate for each device?

    For messages
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime
    For other issue:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • Instead of trigger with ADO - once again

    since everyone seems to ignore my last 2 posts, i thoght of tring one more time.
    before i give up the use of instead of updates and redesign the system, which really sux.
    i dont understand why i can get a response from the oracle team..
    do i have to open a tar for you guys to respond?
    im using ole db provider 9.0.1
    with mdac 2.7 on a win 2k system
    db ver: 8.1.7
    anyway, i have a simple view, no lob fields, all number and varchar2
    and it has an instead of update, that for this example ill say it does nothing,
    print a message to the output, for example, cause the bug occurs ether way.
    so when i use insert on SQL plus it works fine
    but when i use ADDNew with ADO it generates: ORA-22816
    ive searched on otn & metalink and all i could find was a similar problem on JDEVELOP (i think)
    the problem was that the add new is translated to INSERT ... RETURNING, and the RETURNING clause is
    not supported by instead of updates or something like that
    this is really important to me and i must find a solution.
    is there a switch, attribute or a property i can set to turn off the returning clause?
    or a fix in the ole db 9.2 provider?

    since everyone seems to ignore my last 2 posts, i thoght of tring one more time.
    before i give up the use of instead of updates and redesign the system, which really sux.
    i dont understand why i can get a response from the oracle team..
    do i have to open a tar for you guys to respond?Please note that the OTN forums are not official methods for receiving technical support from Oracle. Some forums happen to be monitored by folks from Oracle, but the intention of OTN is to provide a forum for engineers to communicate with other engineers. I would strongly suggest opening a TAR with Oracle support if you want to communicate with Oracle support.
    Justin

  • Safari, chrome and firefox cannot verify identity of secure websites after upgrading to 10.7.4,  apple engineers have tried multiple things including operating system with no success

    safari, chrome and firefox cannot verify identity of secure websites after upgrading to 10.7.4,  apple engineers have tried multiple things including operating system with no success

    There are several threads about this problem, most notably one called 'Invalid Certificates' is over 4 pages long.  Many of us have experienced difficulty connecting to banking and other secure sites.  On my Macbook Pro, I cannot get to my banking site with any browser, however I can get there on my iMac using Safari, but get the 'Invalid Certificate' notice with FF and Chrome.  The problem started after the installation of 10.7.4.  I have sent a message to Apple--they will be dismayed to hear that I cannot complete an order at their online store!

  • I have ripped all of my Cds into iTune, now I cannot find where some of the artists have been filled, not all the artists are listed, yet others are listed multiple times as they play with other groups. How do I list all one artist under his name? I know

    Sorry this will appear pretty basic stuff.  I have ripped all my Cds into iTunes, but in starting to make playlists it is apparent that some artists are listed multiple times as they appear with different bands, and others do not appear at all.  I have tried searching different categories, compilations etc, and Finder box does not bring them up.
    My questions are:-
    Do I need additional software to manipulate my tunes in iTunes?
    If so what is suggested?
    or if not:-
    How can I re arrange the tunes so that they appear only under one artist?
    How do I make my "lost" artists tunes appear?
    Thanks for any advice.

    I am not really following what the problem is here.  Artists are listed in the Artist field.  I guess you could stick individual artists in a band in a field such as comments, but then you would have to include searching the comments field in your search.  In which fields are these names located?
    How are you making these playlists? Are these smart playlists or are you just dragging tracks to a playlist?
    Are you doing this search with Finder's find or with iTunes' search?
    If I knew exactly what it was you were trying to do I could tell you if you need addditional software.  In reality though there isn't "additional software" for iTunes.  There's Applescript plugins but I don't see how the ones with which I am familiar would have anything to do with searching for artist names.
    How can I re arrange the tunes so that they appear only under one artist?
    Steve MacGuire aka turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message.jspa?messageID=9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • How do I merge multiple pdf documents into 1 with my iPad ?

    How do I merge multiple pdf documents into 1 with my iPad ? We are required by our customer 1 document that includes 4 different documents from different departments. Currently with our PC we can merge PDF files, excel or word files in to 1 PDF document. How can I do the same with our iPads and iPad minis using adobe?

    blogs.adobe.com We are excited to announce that Adobe CreatePDF application is now available on iOS. With this, Adobe brings rich, high-fidelity and Acrobat-like PDF creation to the iOS devices. You can now convert all your documents on iPad, iPhone & iPod touch devices to PDF for reliable, secure sharing and viewing across PCs, tablets & Smartphones.
    Robert Monsalve
    [signature removed by host]

  • I have multiple users on my computer with separate iTunes libraries.  can we share?

    I have multiple users on my computer with separate iTunes libraries.  Is it possible to share the libraries?  The "share library" preference doesn't seem to work.

    Hi b noir, I also have two users on one pc with two different iTunes libraries.  But I also want to put them onto an external hard drive so that I can free up some memory on the pc.  So I figure I need to consolidate the two users iTunes libraries first before moving to hard drive?  But not quite sure how to do that on the iTunes 11?  Thanking you in advance!!

  • How do you get multiple screens on the iPad with iOS 5.1.1?

    How do you get multiple screens on the iPad with iOS 5.1.1? We just upgraded to iOS 5.1.1, and we see no way to be able to open multiple screens at once. Before, there was a small button in the upper portion of any window. That button would take you from a particular window to the place where multiple windows are open at once. Does it do it differently? Is there a special setting button that we have missed? Thanks!
    One more thing: We are only talking about Safari.

    Guitaristica-
    I don't think I've seen a way to have separate Safari screens visible at the same time.  The small thumbnails were deleted in one of the iOS updates, and replaced with a multiple "Tab" system.
    You can open an additional screen in a new "tab" by pressing and holding on a link until a new menu comes up.
    Fred

  • Instead of Trigger with ADO

    im using ole db provider 9.0.1
    with mdac 2.7 on a win 2k system
    db ver: 8.1.7
    anyway, i have a simple view, no lob fields, all number and varchar2
    and it has an instead of update, that for this example ill say it does nothing,
    print a message to the output, for example, cause the bug occurs ether way.
    so when i use insert on SQL plus it works fine
    but when i use ADDNew with ADO it generates: ORA-22816
    ive searched on otn & metalink and all i could find was a similar problem on JDEVELOP (i think)
    the problem was that the add new is translated to INSERT ... RETURNING, and the RETURNING clause is
    not supported by instead of updates or something like that
    this is really important to me and i must find a solution.
    is there a switch, attribute or a property i can set to turn off the returning clause?
    or a fix in the ole db 9.2 provider?

    i am also having this kind of problem. pls help
    i am using OLE DB 10.2.0.1.0
    i tested that if i use ADO and ms ole db provider for oracle it works fine
    but when i use ADO and oracle provider for ole db, i have got the same RETURNING clause is not supported error message.
    can anybody here provide me a solution or work around? tnx

  • RegionRenderer encodeAll The region component with id: pt1:r1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance.

    Hi,
    I am using JDEV 11.1.2.1.0
    I am getting the following error :-
    <RegionRenderer> <encodeAll> The region component with id: pt1:r1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
    Piece of code is for region is:-
       <f:facet name="second">
                                                <af:panelStretchLayout id="pa1"
                                                                       binding="#{backingBeanScope.Assign.pa1}">
                                                    <f:facet name="center">
                                                        <af:region value="#{bindings.tfdAssignGraph1.regionModel}" id="r1"
                                                                   binding="#{backingBeanScope.Assign.r1}"/>
                                                    </f:facet>
                                                </af:panelStretchLayout>
                                            </f:facet>
    How do I resolve it ?
    Thanks,

    Hi,
    I see at least 3 errors
    1. <RegionRenderer> <encodeAll> The region component with id: pt1:r1 has detected a page fragment with multiple root components.
    the page fragment should only have a single component under the jsp:root tag. If you see more than one, wrap them in e.g. an af:panelGroupLayout or af:group component
    2. SAPFunction.jspx/.xml" has an invalid character ".".
    check the document (you can open it in JDeveloper if the customization was a seeded one. Seems that editing this file smething has gone bad
    3. The expression "#{bindings..regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "pePanel") evaluated to null.
    "pageeditorpanel" does seem to be missing in the PageDef file of the page holding the region
    Frank

  • Can't get photoshop elements 12 to print multiple copies of an image with one print job? what to do?

    Can't get photoshop elements 12 to print multiple copies of an image with one print job

    How do I do that? I'm the only user on the laptop - I kind of assumed I already was running the install as the admin.

  • Can we create multiple billing document from delivery with single line item

    can we create multiple billing document from delivery with single line item

    Hi
    Please check the link
    [can v create multiple billing document from delivery with single line item]
    and as Lakshmi said, check the forum before posting an issue.
    Regards
    AA

  • Can v create multiple billing document from delivery with single line item

    can v create multiple billing document from delivery with single line item

    Dear Sandesh
    Go to VOV7, select your item category.  In this maintain K  for Billing Relevance
    Now go to VF01, give the delivery number and do not press Enter.  Instead click on Selection list on the next screen, select the items you want to bill and click copy and continue if necessary
    thanks
    G. Lakshmipathi

  • Multiple emails in outlook 2010 with pdf attachments will not print

    Here is our issue
    1. Select multiple emails in outlook 2010 with pdf attachments (versie 10.0.1)
    2. Go to file -> Print
    3. Select Print Options.  Check the box for Print Attached Files
    4. click Print The emails will print but only the first attachment will print. 
    After that we recieve the following error
    There was an error opening this document. The selected file cannot be found.
    We have tried turning off enhanced security mode but still get the same result

    You can also extract these pdf attachments via email attachment extractor from here and then send the pdf file for printing. I think this will be easier for you to print them all.

Maybe you are looking for