OCCI vs. OLE DB

I'm going to write an Oracle client in VC++ for Win2000. Oracle itself is running on a Linux machine.
And I'm not sure which way to go; OCCI or OLEDB...
Are there any reasons to choose OCCI rather than OLEDB or the other way round?
Thanks,
Johannes Otepka

OCCI cuts out some middleware and it is relatively easy to use (performance wise, it smokes). Of course, if you are already more familiar with OLEDB and want to have the possibility of moving to another backend at some point then you may rather go that way.

Similar Messages

  • Visual C++ code to connect database

    Hi
    I am currently writing a program in visual c++.
    However I need to store image to oracle database.
    Therefore there is a need to connect to the database.
    In other word, I need to connect using ODBC.
    However I am not sure of the code in visual c++ to connect
    and to store jpg image into oracle database.
    Is there any reference or link that i can get the standard code
    to connect to oracle database using visual c++ code?

    You have a lot of options for how you want to connect. You can use OCI, OCCI, ODBC, OLE DB, and OO4O from C++ code without a problem. If you decide on ODBC or OLE DB, you can use the API directly, or, more commonly, you can use one of the API's that are layered on top of those API's, i.e. ADO, RDO, DAO, etc..
    There isn't a single standard way of connecting to the database in C++-- you have lots of options, depending on what you're most comfortable with. If you can give some additional details about exactly which API you're going to be using, I'll try to point you in the right direction for samples.
    Justin

  • Oracle 9i OCCI and Oracle 8i Database

    Hi All
    I need to use OCCI on my client side. My database server runs on Oracle 8.1.6.0.0 . Is it possible to use OCCI (ie Oracle 9i) as mentioned?
    Prompt reply will be highly appreciated.
    Thank you
    Ronak Chokshi

    I have not seen 9i OCCI yet however, if Oracle's upgrades/new versions are consistent from 7.1 onwards, what you need to worry is to check only the SQL*NET setup, if you are using database server installed on different platform.(either via odbc or oracle's own ole (windows client)). If database is also on the same system, things would be very simple. SQL*NET can be tested using standard sql*plus executed from client side. In case of ODBC setup, odbc has its own test utility by which database can be queried. OTN site has detailed documentation on SQL*NET set up. Hope this helps??

  • Using Oracle 9i with OCCI in Visual Studio ?

    Hi,
    I'm trying to setup my environment so that I can work with new VS2008 and OCCI. We are running Orcale 9i 9.2.0.8.0.
    So I downloaded "occivc9win32_111060" and unpacked it. There was no "%ORACLE_HOME%\oci\lib\msvc" directory to put it like described, so i created it, then i put this dir on the PATH.
    But when compiling (just #include <occi.h> and an emtpy main method) it doesn't find the occi: "occi.h": No such file or directory
    What's wrong?
    Edited by: [email protected] on Mar 9, 2009 9:14 AM

    just dont give up:
    i have a common.h
    ------------------------- CODE--------------------
    //This is just my way to make the prog...
    // #define USEOCCI
    #if defined USEOCCI
         #define WIN32COMMON     //wird gebraucht von OCCI
         #include <occi.h>
    #else
         #include <oracl.h>     //wird gebraucht von OLE
         #include <obound.h>
    #endif
    then go to extras->Options->VC++ Directories (1st Entry on the left side and the 4th option on the left)
    add there for OLE: C:\oracle\ora92\oo4o\CPP\INCLUDE /// ATTENTION this is my install path ... take ur path then VC2008 Express
    add there for OCCI: C:\oracle\ora92\oci\include
    add there for OCCI: C:\oracle\ora92\oci\lib
    thats all in options!
    after all add existing files to your project (for beeing save all the lib files 'cause they r needed by the .H Files)
    not all of them are needed but some of them ... (works in VC2008 by drag and drop)
    NOTE occi 9.2 only works in VC++ 6.0

  • Does OCCI come with 9i, or do we buy it separately?

    Hi, I was under the impression OCCI came with 9i enterprise edition. But I found this doc:
    http://otn.oracle.com/products/oracle9i/pdf/9idb_rel2_prod_fam.pdf
    It says OCCI is part of an "Oracle Programmer" product. Is that correct, and how would we get Oracle Programmer? Thanks.

    Thanks, but the document is for Oracle 9.2 and on page 5 it says this:
    Oracle Programmer
    Oracle Programmer is a product that provides a rich set of interfaces for
    developers who build enterprise applications that access and manipulate
    Oracle9i database.
    Oracle Programmer is a family of products consisting of:
    � Three embedded SQL-style interfaces: Precompilers, SQL*Module, and
    SQLJ
    � Four call level interfaces: Oracle Call Interface (OCI), Oracle C++ Call
    Interface (OCCI), ODBC, and JDBC
    � Two COM data access interfaces: Oracle Objects for OLE and Oracle
    Provider for OLE DB
    � Microsoft .Net support: Oracle Data Provider for .NET (ODP.NET), OLE
    DB .NET, and ODBC .NET
    � Two utilities to generate host-language bindings from database schemas:
    Object Type Translator and JPub
    We want to use OCCI and the Object Type Translator to generate C++ classes to access 9i. Will we need to buy this separate Oracle Programmer product? The document also has a chart saying Oracle Programmer is an "extra cost option". I've been told by an Oracle store rep I would need to buy it, but I'm not sure. Can you elaborate a little about whether I will be about to write and compile OCCI applications and use the OTT if I only have 9i and not Oracle Programmer? Thanks!

  • Can't print OLE objects when 9i report developed in 6i

    Hi,
    I am migrating my reports from 6i to 9i. I just open report in 9i which is already developed in 6i and run the report it don't print OLE objects. It shows when I run report in Designer Preview, but in printing it shows blank
    --Vijay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Error while running statically linked OCCI application on 11G client

    Hello,
    Till recently we used RogueWave classes to connect to Oracle database both 10G and 11G server. So we used to do a build on 10.2.0.4 client and then use that same build with 10.2.0.4 as well as 11.1.0.7 client to connect to 10G and 11G server databases respectively.
    Now we replaced RogueWave classes with Oracle Template Library solution which is a open source solution and want it to run the same way as in use Oracle 10.2.0.4 client to connect to Oracle 10G database and Oracle 11.1.0.7 client to connect to Oracle 11.1.0.7 database. But here when we used to do a build and link with occi library of 10.2.0.4 client we were unable to run that build by changing oracle client to 11.1.0.7 as name of occi library in Solaris 10.2.0.4 client is libocci.so.10.1 . This is not available in 11.1.0.7.
    So we used static version of same library libocci10.a and we were successfully able to run our application on both 10.2.0.4 as well as 11.1.0.7 client but occasionally we get below message on console although no error is observed in data in databases.
    ld.so.1: oracle: fatal: libskgxp11.so: open failed: No such file or directory
    Here is the details.
    SunOS md1npdsun37 5.10 Generic_141444-09 sun4v sparc sun4v
    Can someone suggest solution to this ?
    Thanks
    Niraj Rathi

    HI Karthick,
    Thanks for your reply.
    while exporting the application it is running properly on NWDS platform as well in Eclipse platform but not in mi client.
    i am sure that,
    <b>MCD Name = Application Name = War file which is MDK_TUTORIAL_SYNC</b>
    Below is my Meta XML file:
    <b><?xml version="1.0" encoding="utf-8" ?>
    - <MeRepApplication schemaVersion="1.1" id="MDK_TUTORIAL_SYNC" version="250901">
      <Property name="CLIENT.BUILDNUMBER" />
      <Property name="C_APPLRESOLVE" />
      <Property name="DATA_VISIBLE_SHARED" />
      <Property name="EN">LANGUAGE</Property>
      <Property name="E_APPLRESOLVE" />
      <Property name="FACADE_C_CLIENT">X</Property>
      <Property name="FACADE_E_CLIENT">X</Property>
      <Property name="HOMEPAGE.INVISIBLE" />
      <Property name="INITVALUE" />
      <Property name="RUNTIME">JSP</Property>
      <Property name="TYPE">APPLICATION</Property>
    - <SyncBO id="ZNWW_EXM01" version="2" type="download" allowCreate="false" allowModify="false" allowDelete="false" reqDirectSync="false">
    - <TopStructure name="TOP">
    - <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
    - <Field name="LAND_TEXT" type="C" length="50" decimalLength="0" signed="false" isKey="false" isIndex="false">
      <Input type="create">false</Input>
      <Input type="modify">false</Input>
      </Field>
      </TopStructure>
      </SyncBO>
      </MeRepApplication></b>
    reffer the above xml file and please find if  i miss any fields.
    regards,
    Venugopal.

  • What is the diffrence between OCI and OCCI?

    What is the diffrence between OCI and OCCI?

    Will Lee wrote:
    What is the diffrence between OCI and OCCI?Beside the other answers, there are a few additional points to consider:
    1) OCI is the "gold" standard API. New stuff is always available in OCI first, and only later trickles down to other APIs, like OCCI.
    2) OCI is a low-level API, harder to get started with, than OCCI. APIs in OCI are often "untyped", taking a void*, which opens the door for errors.
    3) In OCCI you set values, while in OCI you bind them. So OCCI takes a copy of your values, while OCI takes an address at which to later read the value. This opens the door to subtle bugs where you pass the address of a temporary in OCI, which later crashes in some mysterious ways. So OCCI is way safer in this regard.
    4) OCI is C code, which is very portable. Because OCCI is C++ code, and on Windows you can't easily mix and match libraries compiled with different versions of Visual C++ (VC6, 7, 8, 9), you have to wait for Oracle to make a new build with the latest MS compiler. Just see the number of questions on this OCI forum and the OCCI one.
    5) OCI is used internally by Oracle to write many of their own tools, it's the lingua franca between the Core DB group and the other groups. Since they use it themselves, it's much more stable that OCCI, which is mostly only used by outside customers.
    6) The way SQL objects are dealt with in OCI and OCCI is fundamentally different, to the point where you can't mix and match OCCI and OCI object calls.
    #1 above is one reason we had to abandon using OCCI, lacked support for the new in 11g BinaryXML, but that's just one example.
    IMHO OCI is the way to go, if you want the latest and greatest. Yes, it's more difficult to code against, so the learning curve is steeper, but once you've reached critical mass it's just fine. If you write code in C++ as opposed to C, you can easily make it a lot safer with a thin C++ layer on top which, unlike OCCI, still allows you access any OCI raw handle to do stuff the wrappers don't expose. My $0.02 ;-) --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • Header and footer in excel sheet (ole object)

    How can we generate footer and header in an excel sheet with ole object ?
    Thanks

    hi brian,
    Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:\test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
       so_fpath-sign = 'I'.
       so_fpath-option = 'EQ'.
       append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
          upload excel spreadsheet into internal table
         -->P_TABLE    Table to return excel data into
         -->P_FILE     file name and path
         -->P_SCOL     start column
         -->P_SROW     start row
         -->P_ECOL     end column
         -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    Has the following format:
                Row number   | Colum Number   |   Value
         i.e.     1                 1             Name1
                  2                 1             Joe
      DATA : ld_index TYPE i.
    Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
        MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    thanks
    abdul

  • OLE DB BETA

    The OLE DB provider automatically retrieves information for the
    metadata columns. For example whether a column is a key column.
    Is there are a way to control whether the provider shoudl
    retrieve this information ? The impact on performance is
    significant. The Microsoft OLE DB for Oracle dll does not
    provide the metadata and the performance is excellent.
    null

    Please have a look at this solution:
    SSIS package error
    or this one:
    BIDS 2008 SSIS Package Data Flow Task fails validation and returns “VS_ISBROKEN” Error
    Saeid Hasani [sqldevelop]

  • How can I create files from Documents stored in a longraw via OLE

    Hello,
    we use forms 6 in client-server-mode and store documents (pdf, tif, doc ... all is possible) in a longraw using an OLE-container.
    Actually I develop a new application which has to exchange document-files with other servers.
    Is there a simple way to generate files from this long raw?
    What does this OLE do to my file before storing it in the long field.
    Is this OLE still a good format?
    The migration to webforms could be a good opportunity to change something ...
    Maybe we better store the files in the file-system and show them with the show_document procedure.
    Wolfram

    Set your export type to Hard Disk and export to a folder on your hard-drive, and optionally re-import those exported JPGs using a checkbox on the Export panel. 
    When I do exports like this I typically put them in a subfolder of the raw files rather than physically mixed into the raw files, themselves.  If I want to see the raws and jpgs mixed together I can just enable Show Photos in Subfolders.

  • Problem with getString() in OCCI

    /* <br>
    My name is Chandra, <br>
    I am facing a problem in retriving many records from a table using OCCI <br>
    I am using VC6.0 in WindowXP - SP2 with Oracle 10G client <br>
    <br>
    Here is my Example <br>
    I have no issue with the program when there are 10 records in emp table <br>
    where as I am getting an error when there are 20 records. <br>
    Code is executing till the end <br>
    it also printed Finished Printing which is in main <br>
    and gave the following error <br>
    <br>
    ERROR::: <br>
    1.exe has encountered a problem and needs to close. <br>
    we are sorry for the inconvenience <br>
    Error Signature is saying that it happend with Mod Name ntdll.dll and <br>
    ModVer: 5.1.2600.2180 and Offset:00010fc2 <br>
    When I tried by modifying line <br>
    emp1.ename     = rs->getString(1); <br>
    to <br>
    emp1[i].ename     = "Chandra"; <br>
    it is working Perfectly <br>
    Please advice what is wrong with getString(1); <br>
    Is there any other function which I can use to store the value of ename into a string? <br>
    If there is please advice me how to use. <br>
    Thanks a lot for your support <br>
    Regards, <br>
    Chandra. <br>
    */ <br>
    <b>
    #include <iostream> <br>
    #include <occi.h> <br>
    #include <stdio.h> <br>
    using     namespace oracle::occi; <br>
    using     namespace std; <br>
    int          numberofrecords; <br>
    struct emp <br>
    { <br>
         string     ename; <br>
         int     age; <br>
         int     year; <br>
    }emp1[50]; <br>
    <br>
    void empselect() <br>
    { <br>
         string     user = "scott"; <br>
         string     pass = "tiger"; <br>
         string     osid = ""; <br>
         Environment* env = Environment::createEnvironment(Environment::DEFAULT); <br>
         printf("Environment is Set \n"); <br>
         int ret = 0; <br>
         int i=1; <br>
         try <br>
         { <br>
              printf("Creating the Connection\n"); <br>
              Connection *con = env->createConnection(user, pass, osid); <br>
              printf("\n"); <br>
              cout << "Connection Established - Connected as " << user << "/" << osid << "." << endl; <br>
              cout << "Creating Statement" << endl; <br>
              Statement stmt     = con->createStatement("select from emp"); <br>
              cout << "Executing Query" << endl; <br>
              ResultSet *rs     = stmt->executeQuery(); <br>
              while (rs->next()) <br>
              { <br>
                   emp1[i].ename     = rs->getString(1); <br>
                   emp1[i].age     = rs->getNumber(2); <br>
                   emp1[i].year     = rs->getNumber(3); <br>
                   i++; <br>
              } <br>
              numberofrecords = i; <br>
              printf("Out of while loop \n"); <br>
              stmt->closeResultSet(rs); <br>
              cout << "Closing connection." << endl; <br>
              env->terminateConnection(con); <br>
         } <br>
         catch (SQLException ea) <br>
         { <br>
              cout <<"Inside Exception - OBULA\n"; <br>
              cerr << "Can’t connect: " << ea.what(); <br>
              ret = 1; <br>
         } <br>
         cout << "Before Termination" << endl; <br>
         Environment::terminateEnvironment(env); <br>
         cout <<"Terminated \n"; <br>
    } <br>
    <br>
    void main() <br>
    { <br>
         int j; <br>
         cout << "Calling justlasd \n"; <br>
         empselect(); <br>
         cout<<"Priniting Results\n"; <br>
         for(j=0;j<numberofrecords;j++) <br>
              cout << "emp - "<< emp1[j].ename << "\tage - "<< emp1[j].age << "\t - " << emp1[j].year << endl; <br>
         cout <<"Finished printing"; <br>
    }</b>

    Hey guys try dis code........i too had the same problem soo i hav solved tht in dis way.....
    #ifndef DllExport
    #define DllExport     __declspec( dllexport )
    #endif
    #include <iostream.h>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    typedef struct DllExport MultisiteTableRecord
    unsigned int ReqID; //will point to table 1
    } MultisiteTableRecord;
    typedef OCCI_STD_NAMESPACE::vector<string> cols;
    typedef struct DllExport RowType : public MultisiteTableRecord
         int id;
    string name;
    } RowList;
    enum
    ID = 1,
    NAME,
    class demo{
    public:
    Environment* env ;     
         Connection* conn;
         Statement* stmt;
         ResultSet *rs;
         list<RowList> row1;
    int main( )
         demo *d = new demo;
         try{          
              d->env = Environment::createEnvironment(Environment::OBJECT);          
              d->conn = d->env->createConnection( "infodba", "infodba","tceng" );          
              cout << "Environment and Connection created" << endl;     
              string sqlQuery = "SELECT id,name FROM demo ";          
              d->stmt = d->conn->createStatement(sqlQuery);
              d->rs = d->stmt->executeQuery ();
              int row =1 ;
              ResultSet::Status status;
              while((status = d->rs->next()) == (ResultSet::DATA_AVAILABLE))
                   RowList r;
                   r.id = d->rs->getInt(ID);
                   r.name = d->rs->getString(2);
                   d->row1.push_back(r);
              list<RowList>::iterator i;
              for (i = d->row1.begin(); i != d->row1.end(); i++){
                        cout<<i->name.c_str()<<endl;
                        cout<<i->id<<endl;
    cout << "we" ;
              d->stmt->closeResultSet(d->rs);//to free resources
         d->conn->terminateStatement(d->stmt);
         d->env->terminateConnection(d->conn);
         Environment::terminateEnvironment(d->env);
              cout << "Closing connection." << endl;
         catch(int error){
    cout << "hi" ;
              cout << error;
              return 0;
    }

  • Row Grouping in Excel through ABAP OLE

    Hi Experts,
    I am downloading some ALV report output using OLE with different formatting. The downloaded file has to show data
    in the grouping format.
    For example;
    Interanl table contains fields : Customer Number and sales Order, Amount,
    Customer Number sales Order Amount
    1000                     120000001   3000.30
    1000                     120000002   3400.00
    1001                     122000001   2000.00
    1001                     122000002   3440.00
    After it downloaded the Excel should contains only two line(by dfaultt)
    +    1000                120000001  3000.30
    +    1001                 122000001 2000.00
    When you click on symbol(+)  then hidden rows will shown.
    We can do it in Excel by using Group. Just select few rows(row number 1 to 5) and then go to
    DATA->GROUP AND OUTLINE->GROUP.
    Then u will see one line for the selected rows.
    Can anybody tell me how to achieve it through OLE in ABAP. Your inputs are highly needed for me. Thank you so mush!
    Regards,
    Meera.

    We can do it,  Can anybody tell me OLE Mehod which should I use in the reprot?

  • How to add OLE wordpad objects to a crystal report through VB program

    Can we programmatically add OLE wordpad objects to a crystal report XI r 2. through VB.NET or VB6?
    And is there a way of treating a database binary/blob field as an ole object in CR?

    Hi Mohan,
    Try it in the Designer first. If it works in the designer then it will work in our SDK's but you'll have to use RAS. So when you post your question to the .NET Development - Crystal Reports Forum be sure to specify what version you are using and anything else as far as versions go.
    It may be easier to simply link the OLE Object in the designer, check the help file out on how to.
    Thank you
    Don

Maybe you are looking for

  • Get parent of undefined  is it possible?

    My script is resizing object when the context is "Text" i.e. there is some insertion point. I use this code to get object to resize: if (selection[0].constructor.name = "InsertionPoint") objectToResize = selection[0].parentTextFrames[0]; It works goo

  • Drag and drop from a Mixed Signal Graph to another?

    Using a Mixed Signal Graph a trace can be dragged from a plot area and dropped to another one in the same Graph. Is there a way to have the drag and drop working between two different graphs? Vix In claris non fit interpretatio Using LV 2013 SP1 on W

  • Change Drop Down from Other JSP/Servlet/Bean

    I am wanting to have a select box populate from a database query based on the information pulled from another select box as the user chooses it (ie a user chooses a state and the city choices populate or something like that). I am using JSP, Servlets

  • Saving files in CS5.1 becomes unbearable slow very quickly.

    Let me start by saying, I really really really like Fireowrks for web visuals preperation works. It just does 95% of what I want to do in the way I want to work. I've search the web far and wide and found quite a few people asking similar questions,

  • FMW MapViewer 10133 for WebLogic Server posted on OTN

    http://www.oracle.com/technology/software/products/mapviewer/index.html