Click to See Complete Forum and Search --> : C++, Database, ODBC


May 12th, 1999, 06:15 AM
Hi all,

void CDatabaseDlg::OnButtonCtables()
{
CDatabase db;

try
{
db.OpenEx(NULL);
}

catch(CDBException *e)
{
AfxMessageBox(e->m_strError);
return;

...
}

Now my question: How can I retrieve the names of all tables in the choosen database???

Thanks

Jürgen (mailto:jgmeiner@idgmbh.de)

Marco
May 17th, 1999, 01:25 PM
There is a MFC-Sample called "catalog" shipped with VC++. Look there, espacially for the "CTables"-Recordset

Regards, Marco