C/ODBC comes with some command-line tools such as
MYODBCInstaller.exe. MYODBCInstaller can be used to;
register/deregister a driver or create/edit/remove a DSN. In
other words - MYODBCInstaller can be used to manage ODBC system
information.
Driver
An ODBC driver must be registered before being used. On most platforms this means adding entries into some text (odbcinst.ini) file. In the case of MS Windows it also means adding entries into the registery. A driver is deregistered by simply removing the entries. One complicating factor is that a UsageCount is maintained. The UsageCount is incremented each time a driver is registered and decremented each time the driver is deregistered. The idea is that the driver files should only be removed if the UsageCount becomes 0.
MYODBCInstaller handles adding/removing entries and inc/dec UsageCount but does NOT copy/remove files - that must be done by the caller. For …
[Read more]