Handle to error object after calling the statement execute - SQLDBC

Topic related to SQLDBC inteface to MaxDB
=======================
In C++ while i was executing the statement
rc = stmt->execute("SELECT 'Hello SAPDB' from DUAL");
i could get a handle to the error object by a call to
stmt->error().getErrorText()
Now while using SQLDBC_C i am using
rc = SQLDBC_Statement_execute(stmt,tempstr,strlen(tempstr),encodAsciiType);
Now how do i get the handle to the error object ??
Call like the above one
fprintf(stderr, "Executed SQLDBC_Statement %s",stmt->error().getErrorText());
gives me compilation error:
error: invalid use of undefined type `struct SQLDBC_Statement'
/opt/sdb/programs/sdk/sqldbc/incl/SQLDBC_C.h:125: error: forward declaration of `struct SQLDBC_Statement'
Please Help and feel free to ask me if the question is not clear.
Regards
Raja

Sorry. This question doesn't make sense. So, i withdraw the question.
Basically what I had confused with earlier and got clarified now is:
Just like when we make a call to SQLDBC_Connection_connect and after that use the SQLDBC_Connection_getError to get a handle to the SQLDBC_ErrorHndl.
I wanted to know how should we get a handle to the SQLDBC_ErrorHndl after we have made a call to the SQLDBC_Statement_<function call>.
I got the answer after looking through the SQLDBC_C.h file. It will be SQLDBC_Statement_getError and similarly SQLDBC_PreparedStatement_getError.
Wish i could award myself the 10 points for solving the problem
Regards
Raja

Similar Messages

  • Authorization Scheme - Getting handle on which object is calling the scheme

    Hi
    I'm currently trying to write a custom authorization scheme using a plsql returning boolean. What I'm wondering is whether there is a way to reference the application object (e.g. page, region, page item, button etc) that has triggered the authorization plsql to run.
    What I'm ultimately wanting to do is to create a generic authorization scheme that can be applied to any object, and that auth scheme will look up a database table containing what users can access what object. I can only do this if I know at run-time which object the plsql is currently checking authorization for. (I can get the user from :APP_USER.
    For example I have an authorization scheme "test_scheme". I have applied test_scheme to the button "CREATE" on page 1. This button has a button_id which I can find from APEX_APPLICATION_PAGE_BUTTONS view.
    During page rendering the buttons authorization scheme will be checked (and so the plsql returning boolean will be triggered). When the plsql is triggered I want to reference the fact that the CREATE button on page 1 (or better the button_id) has triggered the plsql, from within the plsql itself.
    I hope this makes sense.
    Many thanks in advance.

    Hi Scott,
    Looks like there are a few others out there encountering the limiatations of authorization schemes.
    Hopefully there will be an enhancement at some point to enable referencing the component id which has triggered the authorization scheme to run.
    Until then I will go down the route of creating an authorization scheme for each component that needs one.
    Many thanks for pointing me to that discussion.
    Jimbo

  • I found several charges on my bank account from Apple on App that is completely free. After calling the number showing on my bank statement there an automated answering that tells you to go to apple website!!! There is nobody to talk to!! Complete rip OFF

    I found several charges on my bank account from Apple on App that is completely free. After calling the number showing on my bank statement there an automated answering that tells you to go to apple website!!! There is nobody to talk to!! Complete rip OFF
    And now because I want to communicate with apple support I have to go through the hectic website and community support, this is ridiculous.
    I have 5 iPhones in my account and this makes me reconsider upgrading to iPhones again.
    Why Apple put a phone number in the bank transaction, if there is nobody to talk to!!!!!!
    I hope someone from Apple support can answer my question.

    Go to getsupport.apple.com.  Or, call 1-800-MYAPPLE.
    Just because an app is free to download doesn't mean that there aren't in-app purchases available.
    Go to iTunes on your computer, log into the iTunes Store with your Apple ID & password, and check your purchase history.  Be advised that all iTunes & App Store purchases are final.

  • Internal Error occurred while calling the ProcessDPCommands API

    We have installed Business Objects XI  with MySQL. We are getting following error when we click on view query on the WEBI Reports
    " Internal Error occurred while calling the ProcessDPCommands API  Error WIS 30270".
    When we change the CMS database to ORACLE everything works fine it looks like some issues when CMS database is MYSQL
    Please hep to fix this problem
    Installation is on Solaris 10
    Edited by: AshishDatar on Nov 6, 2009 3:00 PM
    Installation is on Solaris 10

    did you check whether universe connection is pointing to the correct db?The following url might be helpful:
    [http://www.forumtopics.com/busobj/viewtopic.php?t=52355&view=previous]

  • Refreshing Entity Objects after Altering the table

    Hi,
    My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
    (Changes made to Entity Objects manually are reflected in the View Object correctly.)
    Regards
    Faiyaz

    'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

  • I get an error message after downloading the latest update. It says to download only and then to install manually. How do I fix this?

    I get an error message after downloading the latest itunes update.  It says to download only and then to manually install. How do I do this?  Or, is there some way to make the download work?  Thank you.

    The message is 'errors have occurred, go to tools>download only and try installing manually'.  BTW, I am using Google Chrome.

  • TS1717 I get the following error message after installing the latest version of itunes via auto update:  "the itunes Library file cannot be saved. An unknown error occurred (-54). Has anyone ever seen this message and anyone have a suggestion what to do?

    I get the following error message after installing the latest version of itunes via auto update:  "the itunes Library file cannot be saved. An unknown error occurred (-54). Has anyone ever seen this message and anyone have a suggestion what to do?

    Hi pholewinski!
    I have a couple of articles for you here that I believe will help you with this issue. The first is an article on advanced troubleshooting, and it can be found here:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/ts3297
    If following that article's steps doesn't take care of the issue, you can try the things listed in this article, which is about permissions issues in iTunes:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/TS1277
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Default space after calling the sub template

    Hi All,
    I am calling sub template in the header of rtf report. Even though there is no spaces between header and report title, when previewing it displays a gap between the output of sub template and report title. In the sub template there is no spaces. Is it by default rtf creates spaces after calling sub template in header?
    Thanks,
    Sushil

    Even if i use simple <?call@inlines:HeaderENF?> <?end call?> <?import:file:C:/map/Header-Landscapem1.rtf?>  command in rtf header, there is still spaces between sub template values and AAA.
      AAA....
    The sub template has following code:
    <?template:Header?>
    <?param:dw_date; string?>
    DW REFRESH DATE: <?$dw_date?>
    <?end template?>
    I am using 11.1.1.6.4.
    Is it by default there will be spaces after calling the sub template?

  • Can rs.last() be used after calling the stored procedure?

    Can rs.last() be used after calling the stored procedure? If yes what should be the CURSOR types?

    Can rs.last() be used after calling the stored
    procedure? If yes what should be the CURSOR types?That would depend on the driver/database.
    And as I said in your other post it is far more efficient to count records by just returning a count rather than a complete collection regardless of how you get to the end.

  • Webdynpro error - what happened calling the webdynpropage was terminated ..

    Hello,
    in WD-Application rendering by portal browsing with Firefox clicking a button it appears a popup.
    The same WD-Application rendering by portal  browsing with IE 6.0 clicking a button it appears not popup but a browser error-message
    "webdynpro error - what happened calling the webdynpropage was terminated due to an error.
    Error type: sapPopupMainIdX1"
    Where is the probem.
    We use Portal Netweaver 2004s, SP11 and as backendystsem for WD for Abap Netweaver 2004s, SP 09.
    Best regards
    Oliver Prodinger

    The issue was actually caused by a kernel problem, as described in the topic
    SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide
    I applied the recommended bug fixes and now it works perfectly!
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6055f523-df6e-2910-f0bf-acccbb0a7d37">SAP NetWeaver 2004s ABAP Trial Version SP8 Troubleshooting Guide</a>
    Hope It will solve your problem
    Cheers
    Parag

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • Why do I get Error -1073807343 when calling the open visa function ?

    Hello,
    I am running a Labview 6i under Linux (kernel 2.4) and I have Error -1073807343 when calling the open visa function. I have verified the name of the session (GPIB0::9::INSTR), and I can communicate with my instruments with ibic.
    More informations : I use NIVISA 2.5 and nigpib-0.8.2. I have downloaded the lastest drivers of my instruments but it doesn't work better.
    Thanks very much for your help.

    We've had several NI-VISA releases since 2.5 - so I suggest you upgrade to NI-VISA 3.0. While there isn't anything specific to your type of problem in the Linux version of our readme.txt, I know we've made a number of other fixes.
    While the most recent release is NI-VISA 3.1, I still recommend you upgrade only to 3.0.
    This is because NI-VISA 3.1 requires the new NI-488.2 release for GPIB-ENET to be installed (even though you aren't using that product). This is due to some internal rearchitectures, and the PCI-GPIB product is not released. If you do want to go with NI-VISA 3.1, the new NI-488.2 release for GPIB-ENET on Linux will still work with the PCI-GPIB beta driver that you have installed.
    Dan Mondrik
    National Instruments

  • Error message after clicked the SRM "Full Functionality" tab

    Hi, SRM gurus,
    After I logon to SRM and clicked on the "Full Functionality" tab, I immediately got the following error message.
    Short Text of the Message: Object type SCH is not supported
    URL: http://augustus.corp.bcm.tmc.edu:1080/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    Path: /sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    Message ID: BS 
    Message Type: E
    Message No.: 018
    Message Variable 1: SCH
    Message Variable 2: 
    Message Variable 3: 
    Message Variable 4: 
    Error Code: 560
    Error Text: ERROR_MESSAGE_STATE
    Runtime Error: Object type SCH is not supported
    ABAP Call Stack: Method:  CREATE_SC_INT of program /SAPSRM/CL_PDO_FACTORY_SC_ADV=CP
    Method:  CREATE_NEW_INSTANCE of program /SAPSRM/CL_PDO_FACTORY_SC_ADV=CP
    Method:  CONSTRUCTOR of program /SAPSRM/CL_CH_WD_BOM_SC=======CP 
    I had no problem at other tabs like "Order Status", "Advance Search".
    Where should I look to resolve the issue?
    Thanks in advance!
    Best regards,
    Fisher Li

    ...SRM and clicked on the "Full Functionality" tab...
    I have never seen this tab. Is it a custom tab? In any case, by looking at your error message, I suspect somewhere in your iView definition, the object type is mistaken.  Instead of "SCH", it most likely should be "SHC", which is the default process type for shopping cart.

  • Help! Error 0xc000000f after changing the hard drive!

    Please help. I have gone through this entire forum and NOTHING is working for me. My HP G42-303DX Notebook is only a few years old. I accidentally dropped it and apparently the harddrive broke. I purchased a new one and installed it. Forgetting that I received NO back-up or recovery discs,  I purchased the ones from the HP website. As soon as I got them, I installed it. After all recovery discs were installed I got the following error:
    ==============================================================================
    Boot Manager:
    Windows failed to start. A recent hardware of software change might be the cause. To fix the problem:
    1.Insert your Windows installation disc and restart the computer.
    2.Choose your language settings, and then click "Next".
    3.Click "Repair your computer."
    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
    Status: 0xc000000f
    Info: The boot selection failed because a required device is inaccessible.
    ===============================================================================
    I have done ALL the testing and everything comes out as "passed". I decided to remove the final disc, but then I noticed that my notebook was not ejecting the disc. Also, I cannot boot from the disc drive. I have reset my computer hundreds of times and it will not eject it. I have pressed F10 as per the other sites, changed the boot order etc etc and I still get the same error (above) and the disc drive will not open and/or will not be recognized by the notebook.
    Stupid question to all the experts out there, but I thought the recovery discs included windows? Yes or no?
    Any help you guys can give me I would greatly appreciate it. I am desperate. Again, I have read forum after form and I still cannot fix this. My work is very strict and have blocked numerous websites, even some to pay my utility bills on. But my work computer is the only computer I have access to.
    Please help!!! I really don't want to resort to going to a tech company to get my laptop fixed.

    Hello sincityjenn,
    Welcome to the HP Forums.
    I see that you're trying to get your Notebook up and running after replacing the harddrive and are running into an error. I will try to help you with this.
    I would like you to read over this document: Looking for HP Recovery Discs or an HP USB Recovery Drive?
    This statement at the start of the document should asnwer a question you had "An HP recovery solution can be used to return a computer's software configuration to its original condition". This imply's that you already have the OS on the computer.
    What you would need is an installation disk for Windows, and to actually re-install the OS. If that doesn't work then you may actually wanna call support and run the situation by them to see what options are availible to you.
    HP Technical Support, North America 1-800-474-6836. For all other regions click here.
    http://www8.hp.com/us/en/contact-hp/ww-contact-us.html
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Do not use SOAP Envelope checkbox, MainDocument set as MainAttachment after call the receiver adapter

    Hi experts,
    We have a Proxy to SOAP scenario and we have the same issue mentioned in this post and in note 1522630, the version is SAP PI 7.31 (AEX). We configured 2 XSLT mappings and we use the MessageTransformBean (Transform.ContentType=text/xml;charset=utf-8) before call the standar module for SOAP receiver adapter.
    Everything looks good but in the payload appears MainAttachment (in SAP PI and SXI_MONITOR in SAP ECC 6.0 SAP_BASIS 731) and the proxy can´t read the response for this reason.
    This is that we see in the message content:
    <sap:Manifest xmlns:sap='http://sap.com/xi/XI/Message/30' xmlns:xlink='http://www.w3.org/1999/xlink'><sap:Payload xlink:type='simple' xlink:href='cid:[email protected]'><sap:Name>MainAttachment</sap:Name><sap:Description>Main document</sap:Description><sap:Type>Application</sap:Type></sap:Payload></sap:Manifest>
    Do you have any updates of this problem or any suggestion?
    Thanks and regards.

    Hi Sriram and Mark,
    Thanks a lot for your help.
    After a lot of test we solve the problem.
    We are using an Integrated Configuration and the keepAttachment checkbox is not necesary.
    The problem was that the value "ns0" in the message type of the xml was not added by the XSLT mapping(altova), we added manually in the xsl file and the proxy read the information.
    The message content was not changed and looks like an attachment, also y sxi_monitor looks as MainAttachment in the payload but is interpreted good.

Maybe you are looking for