I have a couple of users trying to connect to a Sysbase ASE 12.5 server and keep getting the following error: "The setup routines for the Sybase ASE ODBC Driver ODBC driver could not be loaded due to system error code 126."
We have checked the system path string, which looks OK; It was compared to one that works. And we've tried installing the driver from remote and local sources. It still will not work. The machines are Win2K and XP. Currently, there are about 30 other users that connect without issue.
what is your ODBC version ?
did you install the Open client ? and which one ?
If there was a previous version of open client installed, it is recommended that it be removed and the registry entries be cleared before installing the newer version. If the previous installation was 11.1.1 there should be an uninstaller on the original cdrom. If not, remove the directory and reg settings manually.
from solved cases on sybase site :
First of all, make sure all the environment variables are set correctly.
$PATH - contains bin and dll in the path. Make sure, that you code is not resetting any of these variables.
The 126 error is normally due to older versions of the DLLs being picked up. You'll need to remove the following files and rerun the setup.
The resolution to the problem is to delete all copies of the following WinNT/Win95/Win3.x Sybase ODBC files:
syutlnt.dll/syutl95.dll/syutlw3.dll and syodbc.lic.