ODBC FOR SYBASE
sybase 12.5
vc++
i want get the table name use SQLColAttribute();
but the result is NULL
exam:
....
(Select aa from bb)
rc = SQLPrepare(m_hStmt,(unsigned char *)szSQL,SQL_NTS)
SQLExecute(m_hStmt);
rc = SQLColAttribute(m_hStmt,i,SQL_DESC_BASE_TABLE_NAME ,szTable,128,&nTable,NULL);
....
i test at sql is successed ; but in sybase szTable is NULL,
why ??
thanks!!!
|