Command.text with ODBC escape sequence is not working in VC++, Bug in OLEDB ?

Command.text with ODBC escape sequence is not working in VC++. The Code, which written in VB is working perfectly. Is there any different syntax in VC++ or bug in
OLE DB provider ?. I am using OraOLEDB 8.1.7 version.
Thanks
Mani
VB Code
' Enable PLSQLRSet property
Cmd.Properties("PLSQLRSet") = True
' Stored Procedures returning resultsets must be called using the
' ODBC escape sequence for calling stored procedures.
Cmd.CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}"
Set Rst1 = Cmd.Execute
VC++ Code (while execute it is giving error )
pCommand->CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}";
pRs1 = pCommand->Execute(NULL,NULL,adCmdStoredProc);

Hi
The odbc escape sequence for calling stored procedures works fine with VC++ also.
You can check the sampe application at following url :
http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
Hope this helps
Chandar

Similar Messages

  • Escape Sequences don't work with tcsh

    Is it a known issue that escape sequences don't work on tcsh build for MacOS X?
    mtennes@judah:/Users/mtennes>>tcsh --version
    tcsh 6.12.00 (Astron) 2002-07-23 (powerpc-apple-darwin) options 8b,nls,dl,al,kan,sm,rh,color,dspm,filec
    mtennes@judah:/Users/mtennes>>echo -n "\033]0;${USER}@${HOST}:$cwd\007"
    \033]0;mtennes@:/Users/mtennes\007mtennes@judah:/Users/mtennes>>
    mtennes@judah:/Users/mtennes>>/usr/local/bin/tcsh --version
    tcsh 6.14.00 (Astron) 2005-03-25 (powerpc-apple-darwin) options wide,nls,dl,al,kan,rh,color,filec
    mtennes@judah:/Users/mtennes>>/usr/local/bin/tcsh
    mtennes@judah:/Users/mtennes>>echo -n "\033]0;${USER}@${HOST}:$cwd\007"
    \033]0;mtennes@:/Users/mtennes\007mtennes@judah:/Users/mtennes>>ssh atlantis
    mtennes@atlantis's password:
    Last login: Tue Mar 14 12:44:57 2006 from host.mydomain.com
    mtennes@atlantis:/home/00/mtennes>>tcsh --version
    tcsh 6.13.00 (Astron) 2004-05-19 (i386-intel-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec
    mtennes@atlantis:/home/00/mtennes>>echo -n "\033]0;${USER}@${HOST}:$cwd\007"
    mtennes@atlantis:/home/00/mtennes>>The above works an sets the title of the xterm
    PowerMac G5 2.7GHz DP   Mac OS X (10.4.5)  
    PowerMac G5 2.7GHz DP   Mac OS X (10.4.2)  
    PowerMac G5 2.7GHz DP   Mac OS X (10.4.2)  

    Hi Michael,
       I realize that this doesn't actually answer the question but why not just use the actual control characters? You can type them into the command line by typing the following:
    echo -n "<Control>-v<Escape>]0;${USER}@${HOST}:$cwd<Control>-v<Control>-g"
    which ends up looking like:
    echo -n "^[]0;${USER}@${HOST}:$cwd^G"
    where ^[ is the shell representation of the <ESC> control character and ^G is the shell representation of the <BEL> control character. Of course <Control>-v means holding down the control key while typing a 'v', <Escape> is the escape key and <Control>-g means holding down the control key while typing a 'g'. That actually works in any shell.
    Gary
    ~~~~
       I took a course in speed reading and was able to read War
       and Peace in twenty minutes.
       It's about Russia.
             -- Woody Allen

  • My Escape key is not working

    Hi,
    I am Meena.
    I am doing a project using NetBeans and MS-Access.
    When I run my project a internal framed named login loaded on the jdesktoppane which in JFrame.
    So in the login internal frame i used two buttons one for Sign-in and another for sign out.
    So I combined the Sign-in button with Enter key and Sign-out button with Escape key by the following coding.
    I wrote the following coding in LoginInternalFrame->properties->enabled->advanced->Generate PreIntialization Code.
    Action EscFromLogin=new AbstractAction()
    public void actionPerformed(ActionEvent e)
        jButton2.doClick();
    Action OkFromLogin=new AbstractAction()
        public void actionPerformed(ActionEvent e)
           jButton1.doClick();
    getRootPane().getInputMap(jButton2.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0,false),"Esc_in_Login");
    getRootPane().getActionMap().put("Esc_in_Login",EscFromLogin);
    getRootPane().getInputMap(jButton1.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false),"Ok_in_Login");
    getRootPane().getActionMap().put("Ok_in_Login",OkFromLogin);In the above coding Enter key works well no problem.that is when I press the Enter key ,it combined with Sign-in button and works well.
    But when I press Escape key,it doesnot combined with Sign-off button.
    that is nothing is happening when I press Esc key.
    So i change the Escape key and test with F1 then F2 then F3 all are combined with Sign-off button and works well.But only the escape key is not working.
    But I have so many internal frames .In all internalframes my esc key works well.But not in the first inter frame(login internalframe)
    I couldnot understand the reason.
    Will you please help me to solve.
    Thank you so much.
    Meena

    mmm, i'm doing some tests and the case is working for me... The reason F1,F2 keys works while ESC don't is that some component is "eating" the ESC key. Probably your password textField, but it is not its default behaviour. For example, try to replace the textField with a FormattedTextField, write something into it and press ESC, this first ESC is consumed by the FormattedTextField, if you press ESC a second time the FormattedTextField not consume it, so the ESC keystroke processing is given to the rest of the componentes until one of they consume it (basically). So, how can you solve th problem? Try to determine which component is the "escape-eater". Once you detected it try to determine which properties are set and if this properties can alter the keyboard mapping. The problem can be difficult to repeat for us because the look and feel, java version, etc. can affect the system behaviour too. A global hook to ESC can also be the reason (maybe esc key it's not reaching ths components), try to override ProcessKeyBindings and log the results....

  • Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either.

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

  • Hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    Have you changed the system voice to an English one in system preferences?

  • TS1292 How do I redeem a card with a code that does not work?  The support store takes me in circles?

    Help and support sends you in circles and does not help redeem a card with a code that does not work.

    Well, they have a website, but here is a link to their information about unlocking iPhones.
    http://www.att.com/esupport/article.jsp?sid=KB414532&cv=820#fbid=6d7EKuCF_dr
    You may not qualify for an unlock though.

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • You must have connected the Time Capsule with a router that does not work with my direct cable from my ISP

    you must have connected the Time Capsule with a router that does not work with my direct cable from my ISP

    I tried to answer in your other post.. please stick to one thread ..
    What method of internet do you have.. is this fibre install.. if so the TC should just plug in and use dhcp in router mode.. press and hold the reset and it will go back to router mode by default.

  • HT1222 hello i have a problem with my fingerprint id its not working anymore like before his not recognised my finger anymore why ?

    hello i have a problem with my fingerprint id its not working anymore like before his not recognised my finger anymore why ?

    I have had to periodically delete and re-enter my fingerprint. The last update (7.1) may have improved that. You can delete by going to Settings > Touch ID & Passcode, enter your passcode and then tap "Turn Passcode Off" and then go back to the same area, put a passcode back on and then a fingerprint.

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • I have a iPhone4 acquired in Portugal. I will be moving to the EQUATOR (South America). Whenever I have visited the country before, with other cellphones, they did not work (different band) forcing me to buy a local cellphone. Will my iPhone4S work there?

    I have a iPhone4S acquired in Portugal. I will be moving to the EQUATOR (South America). Whenever I have visited the country before, with other cellphones, they did not work (different band) forcing me to buy a local cellphone. Will my iPhone4S work there?

    If it is unlocked it will work if you get a SIM from the carrier you will be using. Note that Apple does not and cannot unlock phones. Only the carrier it is presently locked to can unlock it.

  • Anyone had issues with on/off sleep button not working anymore

    Anyone had issues with on/off sleep button not working anymore?

    If there is Warranty or AppleCare make Genius reservation or set up Service and take or send to Apple for resolution. If no coverage, use virtual Lock Button, tap Settings App > General > Accessibility > Assistive Touch > ON > tap new white screen button > Device > Lock Screen. This can even turn OFF iPhone. To turn ON, connect iPhone to power, charger or USB of computer.

  • Feedback App Not Working and Some Bug Reports

    Tecnical Preview Build 9840 =Upgrade to==>9860==>9879
    >Hi. when i try to open this app, its opening black and then freeze. I was going to report a bug with this app but its not working. So i ill use here. Here visual bug :

    Thank you very much for the quick reply. It is indeed working again (although I still never see any feedback from other users that I could upvote)

  • HT204387 I have a new Iphone 5 and my bluetooth capabilty with my Mercedes E550 is not working for text messaging.  Mercedes says it's a phone issue.  Has anyone else experienced this and did you find a solution?

    Iphone 5 bluetooth texting is not working in my Mercedes E550; Mercedes says it's a phone issue.  Any ideas or suggestions?

    If your question regards the ability of your Mercedes to access the text messages in your phone, the most likely answer is that your vehicle's audio system does not support the Message Access Profile. This Bluetooth profile was adopted in June of 2009, which means that Mercedes Benz wasn't implementing this capability mid-year.
    Your Merc simply will not be able to access those messages.
    If the dealer can do an update of the Firmware, it might improve the capability. But the expense of that might outweigh the ability to gain access to your texts. This is to say that there is even an upgrade possible. This is a major addition to the Bluetooth capabilities.
    FWIW, up until recently, most cars havn't had this capability. The earliest adopters were Ford and BMW.
    -D

  • Sending E-mail with attachment within a loop not working.

    Hi,
    I'm trying to send e-mails with attachment to multiple users with "subject & an attachment" within an ITAB loop.
    SUBJECT for each mail to corresponding user is being sent properly.
    But ATTACHMENT contents are not being sent properly.
    1st ATTACHMENT contents are going to 2nd user(supposed to go to 1st user) & 2nd ATTACHMENT contents are going to 3rd user etc..
    in almost all attempts, last ATTACHMENT contents within the loop were delivered properly to the last user.
    As a test, I'm debugging by sending with same "SUBJECT" & "ATTACHMENT CONTENTS". still it's not working.
    Following is the code for sending mail with same "SUBJECT" & "ATTACHMENT CONTENTS".
    I even refreshed the file contents for each record within the ITAB. Greatly appreciate any help.
    assume that ITAB has a field GROUP with values 501, 502, 503 & 504.
    SUBJECT is the subject of e-mail & DIST_LIST is the e-mail id of the corresponding user.
    DATA:
        MAIL_FILE(20) TYPE C,
        MAIL_TEXT(200) TYPE C,
        COMMAND(512) TYPE C,
        DIST_LIST(425) TYPE C,
        SUBJECT(60) TYPE C.
    DATA: BEGIN OF ITAB  OCCURS 0.
            DATA GROUP LIKE /BI0/PGRP-GRP.
    DATA: END OF ITAB.
    LOOP AT ITAB.
    SUBJECT = ITAB-GROUP.
    IF ITAB-GROUP = '501'.
    DIST_LIST = '[email protected]'.
    ENDIF.
    IF ITAB-GROUP = '502'.
    DIST_LIST = '[email protected]'.
    ENDIF.
    IF ITAB-GROUP = '503'.
    DIST_LIST = '[email protected]'.
    ENDIF.
    IF ITAB-GROUP = '504'.
    DIST_LIST = '[email protected]'.
    ENDIF.
    clear MAIL_FILE.
    clear MAIL_TEXT.
    UNASSIGN <FILE1>.
    CONCATENATE '/tmp/' SY-UNAME '.txt' INTO MAIL_FILE.
    TRANSLATE MAIL_FILE TO LOWER CASE.
    OPEN DATASET MAIL_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      MAIL_TEXT = ITAB-GROUP.
      TRANSFER MAIL_TEXT TO MAIL_FILE LENGTH 200.
    CLOSE DATASET MAIL_FILE.
    clear MAIL_TEXT.
      CONCATENATE '< ' MAIL_FILE INTO MAIL_TEXT SEPARATED BY SPACE.
      ASSIGN MAIL_TEXT TO <FILE1>.
    *Create UNIX MAIL Command
      CONCATENATE 'mailx -s'
      '"' SUBJECT '"' '"'  DIST_LIST  '"' <FILE1>
        INTO COMMAND SEPARATED BY SPACE.
    Send the E-mail
      CALL FUNCTION 'RFC_REMOTE_EXEC'
        DESTINATION 'SERVER_EXEC'
        EXPORTING
          COMMAND = COMMAND
        EXCEPTIONS
          OTHERS  = 04.
    ENDLOOP.

    Hi Zhenglin,
    thanks for your reply.
    Now, it's working after I changed attachment file name (user name) with ITAB-GROUP.
    but, I'm not clear on why it was not working even if the file name is same in every loop, as I'm unassigning the file contents and loading new contents at the start of each loop.
    anyhow, it's working and many thanks for your help.

Maybe you are looking for