This discussion is archived
6 Replies Latest reply: Apr 20, 2012 10:03 AM by 930153 RSS

Metadata access problem

930153 Newbie
Currently Being Moderated
Hi.
I'm new be to oracle OCCI and i'm trying to develop my application, i'd like to work with metadata but when i try ro retrive metadata from vector compiler give me an Access violation.
I'm not the db admin.
I'm using VS C++ 2008 and Oracle OCCI 11 32 bit libraries

std::vector<oracle::occi::MetaData> md = rRes->getColumnListMetaData();

          for(int iCount=0;iCount<11;iCount++)
          {
          
          std::cout<<"Column Name:"<<(md[iCount].getString(oracle::occi::MetaData::ATTR_NAME))<<std::endl;
               std::cout<<"Data Type:"<<(md[iCount].getInt(oracle::occi::MetaData::ATTR_SCHEMA_NAME))<<std::endl;
          
               
          }

Any one can help me?

Thank's

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points