Link to home
Start Free TrialLog in
Avatar of chitrack
chitrack

asked on

OLEDB - CColumns

Hi All,

I have an application which uses OLEDB techinque to fetch the schema of the tables available in the database. When i use CCOlumns it is not fetching data type name for a column which i need. How do i proceed? is there any alternative to do the same

Thanks in Advance
Chitra
Avatar of nabehs
nabehs

which database u r using?
Avatar of chitrack

ASKER

MS SQL Server.
Here is the code snippet:
cols->Open(cs,NULL,NULL,m_csTab);
where cs is the session object and m_csTab is the table name.
With this am able to see certain properties of the columns but that too in correct. There is no property to fetch the data type name also in CColumnInfo class.
Can we do something else on this?

Thanks
Chitra

ASKER CERTIFIED SOLUTION
Avatar of nabehs
nabehs

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial