Home » Developer & Programmer » Precompilers, OCI & OCCI » OCCI getString problem
OCCI getString problem [message #94267] Wed, 23 June 2004 22:51
Yanis Manaras
Messages: 1
Registered: June 2004
Junior Member
Hi,

I would be grateful if you could help me with the following problem. I tried to run the metadata example I found in the "OCCI programmers guide" and it seems that it fails when the statement

"(emptab_metaData.getString(MetaData::ATTR_OBJ_SCHEMA))" is run.

Am I missing something?

Cheers,

Yanis

Environment *env = Environment::createEnvironment(Environment::DEFAULT);

Connection *conn = env->createConnection(userName, passWord, url1);          
        
MetaData emptab_metaData = conn->getMetaData("EMPLOYEES", MetaData::PTYPE_TABLE);

/*
Now that you have the metadata information on the EMPLOYEES table,
call the getxxx methods using the appropriate attributes
*/

/* Call getString */
cout<<"Schema:"<<(emptab_metaData.getString(MetaData::ATTR_OBJ_SCHEMA))<<endl;

 
Previous Topic: Slow insertion in oracle table
Next Topic: How to Configure LISTNER.ORA and TNSNAMES.ORA to RUN External Procedures in PL/SQL
Goto Forum:
  


Current Time: Fri Mar 29 05:23:52 CDT 2024