I'm trying to create a custom ODBC driver using C++ for a Windows environment (like PostgreSQL, Simba, Firebird, etc.) since the ODBC API has multiple ODBC API methods by default.
I established connections using DSN, and I'm able to execute the SQL query using the SQLExecuteDirect method.
However, while connecting Excel with our ODBC driver, I'm unable to bind the table list to the Microsoft query wizard.
The SQLTables(), SQLBindColumn(), and SQLFetch() methods are used to retrieve the list of tablenames here. The data is bound using the SQLBindColumn method.
But I'm confused about how to retrieve the tablenames and bind them to Excel?