Installation in Windows
carl1121 opened this issue · 5 comments
We would like to understand how to register or install the odbccpp.dll file such that it is part of the list in the Drivers tab of the ODBC Data Source Administrato
That way client applications can use a data source name and the driver wrapper to then connect to SQL Server. The idea is to have the ability to inspect the SQL and potentially optimize it before submitting it to SQL Server for execution
Thanks!
It seems there is a misunderstanding of what the odbc-cpp library is. The odbc-cpp library is just a wrapper of the ODBC API that allows to work with one of the available ODBC drivers (see your image) installed on a given machine. In other words, it is not a driver and any installation (copying to a custom directory) won't list it in the tab mentioned above.
The SQL Server management studio wont' be able to access it in no case, unless you use the wrapper in your C++ implementation of the client application.
Hi carl1121,
This project is a C++ wrapper of the C-based ODBC API. It is not a wrapper of an ODBC driver, so there is no way to register the compiled .dll as an ODBC driver.
If you'd like to develop an ODBC driver wrapper, a good starting point might be an actual ODBC driver. You might have a look at the open-source PostgreSQL ODBC driver (https://git.postgresql.org/gitweb/?p=psqlodbc.git;a=tree) to get an idea how to implement an ODBC driver.
Cheers,
Stefan