Results 1 to 5 of 5
  1. #1
    mes5464 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Location
    Aurora, CO, USA
    Posts
    4

    Cannot Connect To SQL Server Using Working DSN

    I have a DSN that works just fine when I test it. When I try to connect with Access using the same DSN I get the following error:

    Click image for larger version. 

Name:	ErrorMsg.png 
Views:	11 
Size:	42.5 KB 
ID:	11783

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Are you able to link a table from the database in question into your database, open the table and see the contents just fine?

    If so you may just have mistyped your DSN.

    Also, is the DSN you're using a SYSTEM or USER DSN, that could make a difference as well.

    Can you show the code you're using to connect to the database?

  3. #3
    mes5464 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Location
    Aurora, CO, USA
    Posts
    4
    I have a database with linked tables to the SQL Server through the DSN. I could open the tables before but now I cannot.
    The DSN is perfect because I can open the ODBC manager and test the connection and it succeeds.
    The DSN is a System DSN.
    There is not code to show, these are simply linked tables.

  4. #4
    mes5464 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Location
    Aurora, CO, USA
    Posts
    4
    Ok. I found the answer.

    There are two ODBC Data Source Administrators, they are located at:

    • C:\Windows\SysWOW64\odbcad32.exe
    • C:\Windows\System32\odbcad32.exe


    If you go to: Start > Control Panel > Administrative Tools > Data Sources (ODBC)
    You will get the odbcad32.exe found in C:\Windows\System32

    If in Access 2013 (64 bit) you go to: External Data > ODBC Database
    You will get the odbcad32.exe found in C:\Windows\SysWOW64

    Neither of these ODBC Data Source Administrators shows you all of the DSN on your machine.
    If you want to edit a DSN you created using Access (64 bit) you will have to launch
    C:\Windows\SysWOW64\odbcad32.exe from the command line and there you will get the
    option to edit the DSN created through Access.

    I hope this saves someone else the pain I have gone through for two days.

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Ha yes I've run into this myself, particularly when dealing with different versions of MS access but I was going for the easy stuff first.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Connect To SQL Server
    By beso in forum Access
    Replies: 1
    Last Post: 12-23-2011, 01:19 PM
  2. Replies: 5
    Last Post: 07-17-2011, 08:57 AM
  3. Can't connect Access 2010 to SQL Server 2008 R2
    By LAazsx in forum Import/Export Data
    Replies: 6
    Last Post: 12-10-2010, 08:44 PM
  4. Need Urgent Help [Related Connect DB to Server]
    By gunapriyan in forum Access
    Replies: 0
    Last Post: 08-18-2010, 09:49 AM
  5. Replies: 5
    Last Post: 03-29-2009, 07:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums