How to reference MS Access database in ColdFusion MX 7 on 64-bit Windows

I am migrating customers from:
Windows 2000 Server (fully patched)
Internet Information Services (IIS) 5
ColdFusion 5
to:
Windows Server 2003 Standard x64 Edition (fully patched)
Internet Information Services (IIS) 6 (running in 32-bit
mode)
ColdFusion MX 7 (7.0.2) Standard
Unfortunately, some of these existing customers are still
using Microsoft Access databases instead of SQL Server. Having all
of these existing customers migrate to SQL Server is not yet
practical. On the old Windows 2000 / ColdFusion 5 server, they are
using OLE DB data sources to reference the MS Access databases
using the "Microsoft.Jet.OLEDB.4.0" provider. None are configured
to use ODBC drivers when referencing MS Access or SQL Server.
I have yet to figure out how to get ColdFusion MX 7 to:
- Create a data source that references MS Access databases on
64-bit Windows.
- Reference an existing MS Access data source created with
the 32-bit version of the ODBC Data Source Manager on 64-bit
Windows.
A bit of background information regarding MS Access on 64-bit
Windows:
- At the time of this writing, Microsoft has not
created/released 64-bit drivers for Microsoft Access and it's
unlikely they ever will, for understandable reasons.
- Contrary to seemingly popular belief, the Microsoft Jet 4.0
Database Engine does exist on 64-bit Windows. See the following
regarding version and file location information:
How to obtain the latest service pack for the Microsoft Jet
4.0 Database Engine
http://support.microsoft.com/kb/239114
- You CAN create MS Access based data sources within 64-bit
Windows, but they have to be made using the 32-bit version of "ODBC
Data Source Manager". I'm assuming these DSNs may only be used by
32-bit applications, but I have not tested that theory.
32-bit data sources:
ODBC Data Source Manager:
%SystemRoot%\SysWOW64\odbcad32.exe
Registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC
Default file DSN directory:
C:\Program Files (x86)\Common Files\ODBC\Data Sources
64-bit data sources:
ODBC Data Source Manager:
%SystemRoot%\system32\odbcad32.exe
Registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
Default file DSN directory:
C:\Program Files\Common Files\ODBC\Data Sources
The 64-bit version of "ODBC Data Source Manager" (under
Administrative Tools) only show "SQL Server" and/or "SQL Native
Client" as options when creating new data sources, unless
third-party software is installed that supplies additional drivers.
The 32-bit version of "ODBC Data Source Manager" (by default,
there is no shortcut for this in the Start menu) shows the typical
drivers seen on 32-bit versions of Windows, including SQL Server,
SQL Native Client, Microsoft Access, Excel, FoxPro, Paradox, etc.
When using ColdFusion Administrator in ColdFusion MX 7.0.2 in
64-bit Windows 2003 (IIS is running in 32-bit mode to allow
ColdFusion MX 7 to function at all), two problems are encountered
when dealing with MS Access (and presumably other 32-bit drivers).
In both cases, ColdFusion is trying to reference the registry
location for 64-bit data sources instead of 32-bit:
1. Creating a new data source within ColdFusion
Administrator:
Data Source Name: whatever
Driver: Microsoft Access
CF Data Source Name: whatever
Database file: (physical path to whatever.mdb)
(other settings are irrelvant for this example)
Error generated when submitting:
Unable to update the NT registry.
Cannot open HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC
Data Sources: Windows error number 5 occurred.Access is denied.
ColdFusion stores the data source, however a "verify"
generates the following error:
Connection verification failed for data source: whatever
java.sql.SQLException: [Macromedia][SequeLink JDBC
Driver][ODBC Socket]internal error: Data source name not found and
no default driver specified
The root cause was that: java.sql.SQLException:
[Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error:
Data source name not found and no default driver specified
2. Creating the data source using the 32-bit version of "ODBC
Data Source Manager" then trying to reference it with ColdFusion:
ODBC Data Source Manager:
System DSN or File DSN:
Name: whatever
Driver: Microsoft Access Driver (.mdb)
Database: (physical path to whatever.mdb)
(creation is successful within ODBC Data Source Manager)
Reference the above DSN within ColdFusion Administrator:
Data Source Name: whatever
Driver: ODBC Socket
Error generated when submitting:
Error accessing available odbc datasources. - Cannot open
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources:
Windows error 2 occurred.The system cannot find the file specified.
ColdFusion MX 7 can't find the 32-bit data source on 64-bit
Windows because it's looking for it in the wrong registry location.
Can ColdFusion MX 7 be configured to look in
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC
instead of
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
on a 64-bit Windows machine?

Paul,
Thanks for the insight on this. Regarding the initial problem
I ran into with creating Access based DSNs, very early-on, I
noticed there were two different driver options for Access
displayed within ColdFusion MX 7 Administrator:
Microsoft Access
Microsoft Access with Unicode
For reasons I'm am still baffled over, I somehow completely
forgot about and through the wonders of apparent tunnel vision,
completely overlooked the "Microsoft Access with Unicode" driver
option when I was running through my tests.
At your seemingly-obvious suggestion, I created a data source
using the Microsoft Access with Unicode driver and it worked
perfectly fine with the one customer's web site I'm using for
testing (of course, this is a copy--the production site is still
housed on the old ColdFusion 5 server). This obviously doesn't
actually fix the underlying issue with ColdFusion looking in the
wrong part of the registry on 64-bit Windows, but at least when it
comes to dealing with Access databases, your suggestion of using
the Microsoft Access with Unicode driver appears to be a functional
work-around. So long as there aren't any surprises waiting for me,
hopefully this will also work for the remaining ColdFusion sites I
have to migrate that are using Access databases.
Since you mentioned JDBC drivers in comparison with ODBC, I'm
pointing out a couple of references in case they're helpful to
anyone following this thread:
ColdFusion MX 7 - About JDBC
http://livedocs.adobe.com/coldfusion/7/htmldocs/00001736.htm
Types of JDBC technology drivers
http://java.sun.com/products/jdbc/driverdesc.html
http://java.sun.com/products/jdbc/
I don't actually develop anything in ColdFusion, so I'm
dealing with all of this from a server administration standpoint
since we do have some domain hosting customers that do develop or
at least have existing ColdFusion based sites. I am all
too-familiar with the caveats of using Access in any kind of
production or heavily used environment and have spent years keeping
users away from ODBC. For ColdFusion users, that meant creating OLE
DB DSNs and often having to fix poorly written SQL statements and
fixing ColdFusion date-related values and boolean values (the
common problems encountered when switching CF / MS Access users
from ODBC to OLE DB). I can only recall running into problems with
a single SQL Server based ColdFusion site when migrating from ODBC
to OLE DB. That customer never did get their many coding problems
fixed, so they're the only ones still using ODBC in CF. I have no
idea what'll happen when that one site gets migrated over--if it'll
even work. Obviously a lot of things have changed between
ColdFusion 5 and the MX versions that have come along afterward.
Thanks again for the Access with Unicode driver tip and JDBC
info. It looks like I can finally start moving forward again with
the site migration process.
Josh

Similar Messages

  • How to use MS Access database in Flash CS4 using AS3

    Hello everyone,
         I need help for how use the MS Access database in FlashCS4 and I want to save and retrive the data from the database and display in the Flash window.
    Thanks with,
    Viswa.

    http://www.northcode.com/blog.php/2011/05/06/Using-ADO-Data-Sources-in-Flash-Projectors

  • How to import Ms Access database in Oracle 11g

    how to import Ms Access database in Oracle 11g

    google the subj. search terms reveals a tutorial ...
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/sqldev_migration/msaccess/migrate_microsoft_access_otn.htm

  • How to connect my access database using applet?

    hi all,
    i need to connect my access database in my applet program which should work like an atm machine..I dont know how to connect it. Im new to applet same thing in JDBC application. Please help i terribly need it, our deadline in our case study is fast approaching and i still dont know how to do it. I tried the tutorial but i received some sql exception error. thanks!

    Try this link
    http://java.sun.com/docs/books/tutorial/jdbc/basics/

  • How to know MS Access Database is down through Java

    How i would know whether MS Access DataBase is down?
    Is there any specific code for it in Java
    Need a quick reply

    How i would know whether MS Access DataBase is down?"down"? If the file system on which it's running is unavailable, that's the best you can do. If you can't connect, it's "down".
    Is there any specific code for it in JavaNo. Doesn't sound very platform-independent.
    Need a quick replyFast enough?
    %

  • How to use an access database file with vb project

    hi deve.
    im wondering how can i use a database file (created with microsoft access) in a vb project
    i want to assign a textbox content from the database file from a specific field according to its id can anyone explain that with a simple code example
    thanx..

    thanx
    pvdg42
     this article is all i need

  • Database timeout issue in oracle 11g 64 bit windows machine

    Hi ,
    Database connection getting timedout for every 30 seconds in oracle 11g database 64 bit windows environment.
    And the error we are getting is "Invalid user name and passoword".
    After altering the schema passoword
    alter username identified by pwd;
    we are able to connect to database but it is getting timedout after 30 seconds.
    Is there any parameter settings that requires changes or verifications.
    We are facing this using sqlplus as well as through JDBC connection.
    Thanks
    Prasanna

    Check profile assigned to user... there is a parameter idle_time.. increase this..

  • How to administer an Access database via web-based interface?

    There are times when I need to edit a database record to do something my CMS wasn't designed to do, so I have to manually edit it. Normally I just ftp the Access mdb file to my pc, make edits, and reupload the mdb file and hope nobody updated the database in the meantime.  Does anyone know of a web-based database admin system that will allow me to edit Access data?  Sure would be nice if I could install something on the server that would allow me to edit any datasource there and not have to have a separate, customized interface for each datasource.
    Thanks for looking, Bill

    I would recommend naming that page with an extension that the web server will not serve.  Rename it to use it and then rename it back when done.
    Or just put access restrictions on it via the web server, so one needs to authenticate to the system before using it.
    Or stop using Access and use a decent DB: Access is not appropriate to be used as a DB for a web application.  But that might not be an option.
    Adam

  • Compacting an Access Database

    Does anyone know how to compact an Access Database programmatically from LabVIEW?
    Can the Database Connectivity Toolset be used?

    I have created a LabVIEW solution for the MS Access DB compressing issues we have all seen.
    I am actually using the MS Access Compress and Repair function via
    Active X. There are ways to also use the Jet Engine to call the same
    function, but I could not get it to work using a required DB Password
    to be entered. The code uses the Database Toolkit from NI so I hope all
    of you have that. It also uses MS Access 2000 active X component. It
    should work for any version of Access, but it needs to be recompiled
    for different versions of Access. let me know if it works out for any
    of you.
    The code allows to use a temp folder to create the compressed DB, or to
    put it in a backup folder of your choice. It also handles replacing the
    original database with the compressed one. The code finds the database
    given the connection reference being passed in. I use the ADO
    connection string to find the database location and the File DSN in
    order to reconnect to the database. I built it for my specific needs
    but I am sure any of you can customize it to your needs as well.
    Thanks,
    --Kevin
    Kevin Shirey
    PVI Systems Inc.
    Certified LabVIEW Developer
    Attachments:
    Compact DB Via DB Conn Ref.vi ‏133 KB

  • Join multi access database tables

    Anybody knows how to join multi Access database tables
    by using LAbview SQL tool kit? It seems Labview SQL does not support "JOIN" feature.
    Thanks

    But I still dont know how to join multiple tables.
    I've tried:
    SELECT  pd.NAME, pp.PART_ID, pp.MATERIAL, pt.NAME
    FROM PRODUCT pd INNER JOIN LOOKUP_PRODUCTPART pp
         ON pd.PRODUCT_ID=pp.PRODUCT_ID INNER JOIN PART pt
         ON pp.PART_ID=pt.PART_ID
    But it doesn't work. 
    Hm.. the following (joinig two tables) works. It's shows that INNER JOIN works in LabVIEW:
    SELECT  pd.NAME, pp.PART_ID, pp.MATERIAL, pt.NAME
    FROM PRODUCT pd INNER JOIN LOOKUP_PRODUCTPART pp
         ON pd.PRODUCT_ID=pp.PRODUCT_ID 

  • How compact a mdb (Access 2k) with LabSQL?

    How compact a mdb (Access 2k) with LabSQL?

    I believe that you are asking "how to compact an Access Database programmatically from LabVIEW?" If so, you may want to consult :this discussion forum which concerns the same questions.
    J.R. Allen

  • Forte & ODBC Access Database

    We are looking to deploy Forte to Win 3.11 and Win95 users. We are
    using Access database tables to hold data cache locally, rather than
    pull it across the wire.
    We have ODBC drivers for Win95 but are going to get 16bit 3.11 drivers
    from VB v4.
    Has anyone else tried this and if so, are there any pitfalls or helpfull
    hints.
    Thanks in advance.
    Michae Strauss
    Mazda Australia Pty Limited

    Duncan,
    Just put the column in double quotes.
    Example:
    sql SELECT
    ,ipool.id
    ,asgn."Assignment Date"
    ,asgn.router
    ,asgn."Order Number"
    FROM assigned_ips addr
    ,assignments asgn
    WHERE
    addr.id = asgn.Assigned_IP
    AND asgn.master_ip = mpool.id
    AND mpool.ip_pool = ipool.id
    AND ipool.ncc = ncc.id
    ORDER BY addr.id
    on session accessDbSession
    At 09:31 AM 6/17/99 +1200, you wrote:
    Hi folks!
    Does anyone know if there is some way to reference Micosoft Access
    database columns that contain spaces using Forte and ODBC?
    I know it's like trying to use a jet plane to go down to the high street,but
    we want to extend a (large) in-house system with a good Forte front-end.
    I am aware that there are utilities available to rename entities within
    Access databases, but if there is an easy way to do this in Forte we'd
    prefer to go that way.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10years
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How to automate creation of MS Access databases/tables/records

    Can someone point me to some examples that automate the creation of MSAccess database files and tables?
    Can I do this with a bat file? If not, a ps1 file?
    I bing searched and could not find an example.
    I want to test the existence of a mdb (or accdb) file and if it does not exist, create it.
    Then I want to see if that mdb (or accdb) file contains a table named "parts".
    If it does not contain that table named "parts", create the table.
    If that table does not contain any records, than add some sample data, presumably with some SQL "INSERT" statements.
    What is the preferred API for this? I was thinking we should use the ADO.NET/OleDB API. I did find a few examples of queries of MSAccess databases with the old ADO API.
    ADOX seems very old for creating databases. Is there any thing more modern?
    Is powershell the easiest scripting language to do this?
    Thanks
    Siegfried
    siegfried heintze

    This blog post should have most (if not all) of what you need:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
    One thing to watch out for is the db provider for the connection string.  The "Jet Engine" has been superseded by
    ACE.

  • How To Insert Data into a Access Database from a PDF File

    Hi All,
    Could anyone help me to insert PDF form data to an MS Access database.I am new to this and I would appreciate if anyone can help me at the earliest.
    Thanks,
    Deepti

    You can submit your PDF to a server-side script (ASP/PHP), and store the new record in a MS Access database.
    For more information on how to store your PDF submission in a database, please visit:
    http://www.fdftoolkit.net

  • How to connect oracle application server portal to MS access DataBase

    Hello,
    I am facing one problem here.
    Our client is having their database in MS access and they want to implement the oracle application server portal for their organization then how to connect the MS access DB to oracle Application server portal

    There is a worked example of how to connect oracle to an Excel spreadsheet, which is easily modifyable to read from an Access Database.
    http://asktom.oracle.com/pls/ask/f?p=4950:61:::::P61_ID:4406708207206#18830681837358
    I had some concurrency problems - only one person could use the link at any one time, so I used it to load the data into oracle tables.
    Tak

Maybe you are looking for

  • Hiding items in the gal

    Dear beekeepers, as access to our team workspaces is commonly set by granting full access to a group bearing the same or a similar name as the workspace, we have a potential for confusion in our GAL: the GAL shows, users, groups, ressources and works

  • How to call a transaction with a variant

    Hi all I created a bdc program after updating it should call another transaction with predefined variant that that transaction program is of type module pool. can anyone tell me the syntax how to call a transaction with a variant.

  • Build Cancelled due to Language Code

    My build is canceling during the initial compiler phase stating " Language cods for 'English' and 'English-2' must differ " Please advise! Heather

  • How do i show a popup in an OA Pageon the basis of some database validation

    Hi All I need to show a popup message on the click of a button. On the click of the button I have to submit the page and do some database validation with the data entered by the user on that page. Depending on the validation I have to give a popup wh

  • How to create a empty table when user a oracle bpm ADF 11g auto created form?

    Hi, I'm new to ADF/BPM development. I created a bpm process and generated adf forms. I want to customize those created forms. I want to use a table to show payload content and insert rows from my EJB to BPM payload datacontrol programatically. Everyt