Manually installing SQL Server ODBC driver
Posted on 2000-03-21
Is there an API call which will register the SQL Server driver (SQLSRV32.DLL) with ODBC? If an API call exists, I would assume that it would take care of making the entries in the following registry locations: "HKLM\Software\ODBC\ODBCINST.INI\ODBC Drivers" and "HKLM\Software\ODBC\ODBCINST.INI\SQL Server". I'm hoping that there is an API call out there called RegisterNewODBCDriver or something like that.
Right now my installation program copies all of the files needed by the SQL Server ODBC driver and it manually creates the registry entries. This works fine, but I would prefer to call an API function to take care of the registry if possible. I do NOT want to install the full blown MDAC in this situation, I am only interested in installing and registering the SQL Server driver with ODBC.