The setup routines for the <driver name> could not be loaded due to system error code 126.
Driver could not be loaded due to system error code 1157.
- Incorrect registry settings for MDAC components.
- Incompatible .dll files.
Resolution for incorrect registry settings problem:
- Start Registry Editor (Regedt32.exe).
- Locate the following key in the registry:HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INIInstallation information for ODBC drivers is stored in this key. Make sure that all the required ODBC driver files are in the correct folder as described by the registry keys. For example, assume that you have the following information in your registry for the Microsoft Access ODBC driver:HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Driver (*.mdb)This will cause an error if the Odbcjt32.dll file is in the C:\WINNT\System32 folder. You can modify the registry key values to C:\WINNT\System32\odbcjt32.dll to solve this problem. Also verify that the Odbcinst.ini file has the correct entries in the same way.
Driver = C:\WINNT\System\Odbcjt32.dll
Setup = C:\WINNT\System\Odbcjt32.dll
Any wrong value in HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI under the Setup key will cause this error.
Driver = C:\WINNT\system32\SQLSRV32.dll
Setup = C:\WINNT\system32\sqlsrv32.dll
Driver = C:\Windows\System32\msorcl32.dll
Setup = C:\Windows\System32\msorcl32.dll
Resolution for incompatible .dll files problem:
Номер статьи: 260558 — последний просмотр: 11 февр. 2009 г. — редакция: 1