Solved

odbc--connection to "Database name" failed in Access 2007

Posted on 2015-01-25
9
110 Views
Last Modified: 2015-01-31
We have a Access 2007 file that started saying "odbc--connection to "Database name" failed" when trying to get data from a ODBC connection.  It works fine on about 50% of the computers/users on the network.

We setup a two new computers on the domain with all updates done and user kept getting this error.  If we login as admin on one computer it works just fine.  We tried a second computer under admin and it would give us this error.

All other software they have connects to the SQL database using ODBC with no problems and when disconnecting the ODBC connection and recreating it it tests just fine.

Some users have been having no problems with this and others get the error.  I cant find anything on the computers that are working vs the ones that are having problems.

On one computer you can login as user1 and cant get it then login as user2 and it works just fine.  On another computer user1 can get it and user2 can.

We are running Windows 7 Pro SP1, Access 2007 and the SQL is 2008.


Thanks.
0
Comment
Question by:icsllcweb
  • 6
  • 3
9 Comments
 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 40569899
ODBC configurations can be user-specific or system-wide. Are you sure that all ODBC conections have been defined on the System tab (instead of the User tab) of the ODBC Administration dialog?
0
 

Author Comment

by:icsllcweb
ID: 40569906
Yes, I have only setup all the computers them up on the "system tab".
0
 

Author Comment

by:icsllcweb
ID: 40569909
I also get the same message if delete the ODBC connection completely from the computer.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 40569918
Since the problem happens on some desktops but not others, the ODBC Administration settings seems like the most likely culprit.

It could be a network issue, but not if it works on one login but not another on the same box.
0
 

Author Comment

by:icsllcweb
ID: 40569921
Could there be changes between computers if the OBDC connections were all setup the same?
0
 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 40569937
Perhaps they weren't setup the same. Could a GPO update from AD have updated some OUs but not others?

Try renaming the ODBC connection on a broken desktop, and create a new one using known-good settings. If the app connects, compare the settings in the new config to the old config. Are any of them different?
0
 

Author Comment

by:icsllcweb
ID: 40569939
I will check on it and let you know.  Thanks.
0
 

Accepted Solution

by:
icsllcweb earned 0 total points
ID: 40570771
It looks like the problem was related to a 32bit 64bit issue.  They had a third party software that would change it to a 32bit mode and it worked just fine.  The computers that were working we older 32bit Windows 7 and the ones that were not working were 64bit Windows 7.

Thanks for your time.
0
 

Author Closing Comment

by:icsllcweb
ID: 40581233
After talking it over with there staff someone mentioned it could be a 32 vs 64 bit problem and that was it as it was running in 64bit mode.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question