[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

In reference to the error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. That error means that the Data Source Name (DSN) you are specifying in your connection configuration is not being found in the windows registry. It is important that your ODBC driver’s executable and linking format (ELF) is … Read more

“General error Unable to open registry key Temporary (volatile) …” from Access ODBC

Causes General error Unable to open registry key Temporary (volatile) Ace DSN for process … This is the top-level error message produced by the Access Database Engine (a.k.a. “ACE”) ODBC driver when the current process is unable to open the Access database file for one of the following reasons: Some other process has opened the … Read more

Connect PHP to MSSQL via PDO ODBC

There are several configuration files you need to have set up. /etc/odbc.ini, /etc/odbcinst.ini and /etc/freetds/freetds.conf (these locations are valid for Ubuntu 12.04 and probably correct for most *nixes). You’ll need to install unixodbc and freetds (not sure what the package names are on CentOS). In Ubuntu this would be apt-get install unixodbc tdsodbc. For help … Read more

OdbcConnection returning Chinese Characters as “?”

Problems with character set are quite common, let me try to give some general notes. In principle you have to consider four different character set settings. 1 and 2: NLS_CHARACTERSET and NLS_NCHAR_CHARACTERSET Example: AL32UTF8 They are defined only on your database, you can interrogate them with SELECT * FROM V$NLS_PARAMETERS WHERE PARAMETER IN (‘NLS_CHARACTERSET’, ‘NLS_NCHAR_CHARACTERSET’); … Read more