Hi,
I am using Stata/IC 13.1 for Windows (32-bit) Revision 12 Nov 2015 on a Windows 8.1 Pro machine.
I would like to use Stata's odbc commands to connect to a Microsoft Access database. In fact I would eventually like to create my own databases through these commands, but first things first.
Following the documentation, when I type:
. odbc list
I correctly see a list of ODBC DSNs. This includes the entry:
MS Access Database Microsoft Access Driver (*.mdb, *.accdb)
When I click on it, or just execute the command:
. odbc query "MS Access Database"
I get this error:
The ODBC driver reported the following diagnostics
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch
between the Driver and Application
SQLSTATE=IM014
r(682);
Some web research quickly revealed that this is probably due to a clash between Stata (32 bit) and MS Access (which I assume is 64 bit).
There are two versions of the "ODBC Data Source Administrator". Both are called odbcad32.exe. The 64-bit version is in C:\Windows\System32, whereas the 32-bit version is in C:\Windows\SysWOW64.
There seems to be a 64-bit driver already available for MS Access. My question is: do I need to create a 32-bit driver for my 32-bit Stata to work? If so, I tried using the 32-bit odbcad32.exe to create a 32-bit version of the driver, but when I attempted to query it in Stata I got this error:
. odbc query "MS Access 32 bit driver"
The ODBC driver reported the following diagnostics
r(682);
So either i shouldn't be creating a 32-bit driver in the first place, or have created it incorrectly, or there is some other problem.
I don't know if it would be possible to switch to 64-bit Stata at my university.
Any help would be greatly appreciated :-)
I have attached a screenshot of the odbc admin dialog for my 32 bit driver attempt. Note that it only lists *.mdb and not *.accdb - is this a problem?
Thanks
Matthew
I am using Stata/IC 13.1 for Windows (32-bit) Revision 12 Nov 2015 on a Windows 8.1 Pro machine.
I would like to use Stata's odbc commands to connect to a Microsoft Access database. In fact I would eventually like to create my own databases through these commands, but first things first.
Following the documentation, when I type:
. odbc list
I correctly see a list of ODBC DSNs. This includes the entry:
MS Access Database Microsoft Access Driver (*.mdb, *.accdb)
When I click on it, or just execute the command:
. odbc query "MS Access Database"
I get this error:
The ODBC driver reported the following diagnostics
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch
between the Driver and Application
SQLSTATE=IM014
r(682);
Some web research quickly revealed that this is probably due to a clash between Stata (32 bit) and MS Access (which I assume is 64 bit).
There are two versions of the "ODBC Data Source Administrator". Both are called odbcad32.exe. The 64-bit version is in C:\Windows\System32, whereas the 32-bit version is in C:\Windows\SysWOW64.
There seems to be a 64-bit driver already available for MS Access. My question is: do I need to create a 32-bit driver for my 32-bit Stata to work? If so, I tried using the 32-bit odbcad32.exe to create a 32-bit version of the driver, but when I attempted to query it in Stata I got this error:
. odbc query "MS Access 32 bit driver"
The ODBC driver reported the following diagnostics
r(682);
So either i shouldn't be creating a 32-bit driver in the first place, or have created it incorrectly, or there is some other problem.
I don't know if it would be possible to switch to 64-bit Stata at my university.
Any help would be greatly appreciated :-)
I have attached a screenshot of the odbc admin dialog for my 32 bit driver attempt. Note that it only lists *.mdb and not *.accdb - is this a problem?
Thanks
Matthew
Comment