I'm running the AWS hourly ColdFusion 11 instance on Windows Server 2012. It's locked down.
I'm trying to access a .MDB file via cfquery (DSN).
I have followed the instructions at http://blogs.coldfusion.com/post.cfm/coldfusion-10-64bit-and-msaccess and http://www.coldfusionmuse.com/index.cfm/2010/12/31/Access.on.64bit.ColdFusion provides almost the same answer.
In addition I have HKEY_LOCAL_MACHINE/SOFTWARE/ODBC full permissions to the ColdFusion Windows User.
Per Anit's suggestion I installed the 32-bit AccessDatabaseEngine. I deleted all datasources in both the ODBC tool and CF's admin and re-added them. I also changed the service login from the locked down user to the local service for full rights. I even restarted the whole server.
However I get "[Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined" when running:
<cfquery name="CJT" datasource="membersAdministration">
SELECT *
FROM MSysObjects
</cfquery>
I added the Microsoft Access Datasource in CF Admin giving it a name and database file. The results received as expected was: "Unable to update the NT registry. Variable DRIVERPATH is undefined."
I then ran "C:\Windows\SYSWOW64\odbcad32.exe" and added the System DSN under the same name and path.
I even tried restarting CF.
I see that HKEY_LOCAL_MACHINE/SOFTWARE/ODBC and HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/ODBC have the new entries.
Any ideas what I might be missing?
Here's the stack trace:
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined.
at macromedia.sequelink.ssp.Diagnostic.toSQLException(Unknown Source)
at macromedia.sequelink.ssp.Chain.cnvDiagnostics(Unknown Source)
at macromedia.sequelink.ssp.Chain.decodeDiagnostic(Unknown Source)
at macromedia.sequelink.ssp.Chain.decodeBody(Unknown Source)
at macromedia.sequelink.ssp.Chain.decode(Unknown Source)
at macromedia.sequelink.ssp.Chain.send(Unknown Source)
at macromedia.sequelink.ctxt.conn.ConnectionContext.connect(Unknown Source)
at macromedia.jdbc.sequelink.SequeLinkImplConnection.open(Unknown Source)
at macromedia.jdbc.slbase.BaseConnection.connect(Unknown Source)
at macromedia.jdbc.slbase.BaseConnection.setupImplConnection(Unknown Source)
at macromedia.jdbc.slbase.BaseConnection.open(Unknown Source)
at macromedia.jdbc.slbase.BaseDriver.connect(Unknown Source)
at macromedia.jdbc.MacromediaDriver.connect(Unknown Source)
at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:614)
at coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner.java:67)
at java.lang.Thread.run(Thread.java:745)