SQL Database: Creating Linked Tables in Microsoft Access — Encountered Connection Errors

PeterLemay-9856 0 Reputation points
2026-09-29T18:36:29.8233333+00:00

Problem description

I am attempting to create a linked table in Microsoft Access that points to a table in Azure SQL Database. However, I am experiencing connection issues, and the linking operation fails with an error message. The problem started around 2026-09-29 02:00 UTC. I have attached an example and a detailed description of the error, but the exact error message is not visible in the case notes.

Environment

Client application: Microsoft Access; Data source: Azure SQL Database; Region: not specified in case information.

What I've already tried

I reviewed the guidance on Access-to-Azure SQL linking, which states that SQL Server Native Client 10.5+ is required. I also checked the firewall and network settings for the Azure SQL Database to ensure remote connections are permitted. No diagnostic tests or troubleshooting steps beyond these have been performed yet.

Current status

I am seeking assistance to diagnose and resolve the connection error when linking Access tables to the Azure SQL Database. Specifically, I need guidance on troubleshooting the error and ensuring proper configuration of the database and client environment.

Azure SQL Database

3 answers

Sort by: Newest
  1. Senthil kumar 2,500 Reputation points
    2026-09-30T05:37:01.7+00:00

    Hi @PeterLemay-9856

    Root cause :

    • ODBC version conflict.
    • Firewall settings.
    • DSN not proper.
    • Permission issue.
    • Access DB version 32 or 64

    Solution :

    • Check whether ODBC Driver 17 for SQL Server or ODBC Driver 18 for SQL Server is installed.
    • Create a DSN and use the driver's Test Connection feature. Required values:
      • Server: <server>.database.windows.net
      • Database name
      • Authentication method (SQL Login or Microsoft Entra ID)
      • Encrypt connection enabled
    • Verify:
      • The client public IP address is allowed.
      • "Allow Azure services and resources to access this server" is configured appropriately if required by your environment.
      • No recent firewall changes occurred around the time the issue started.
      Azure SQL blocks connections from unapproved IP addresses
    • Confirm:
      • Username and password are correct.
      • The account is not locked or expired.
      • If using Microsoft Entra authentication, ensure the ODBC driver supports the selected authentication method. ODBC Driver 17+ supports Microsoft Entra authentication scenarios.
    • If the connection succeeds but tables do not appear or cannot be linked:
      • Verify the login has access to the database.
      • Ensure it has permissions such as db_datareader on the target tables/views.
    • Check whether Access is:
      • 32-bit, or
      • 64-bit
      Then ensure the matching ODBC driver is available for that architecture. Mismatched driver architecture can cause linking failures.

    Thanks.

    Was this answer helpful?

    0 comments No comments

  2. Rukshan edirisinghe 910 Reputation points
    2026-09-30T04:48:04.14+00:00

    Hi @PeterLemay-9856

    Something that worked until 02:00 UTC on the 29th and then stopped usually points to one of three things: your client's public IP changed and no longer matches the Azure SQL firewall rule, a credential expired, or an old driver got cut off. The guidance you found about SQL Server Native Client 10.5 is outdated. That driver is deprecated and no longer a good fit for Azure SQL.

    Try this in order:

    • Install Microsoft ODBC Driver 18 for SQL Server, matching your Access bitness (Office 64-bit needs the 64-bit driver). Then relink the tables using that driver.
    • In the ODBC connection, use tcp:yourserver.database.windows.net,1433 as the server, tick Encrypt and set Trust Server Certificate to No. Azure SQL has a valid certificate, so this works and is the secure choice.
    • In the Azure portal, open the SQL server > Networking, and check that your current public IP is in the firewall rules. Home and office IPs change more often than people expect, and the portal shows your current IP right on that page.
    • Test the same login from the Azure portal query editor or SSMS. If it fails there too, it's the login or firewall, not Access.
    • Open Access with Shift held down to skip startup code, then try File > External Data > ODBC Database again.

    If it still fails, paste the exact ODBC error text and the SQLState code here. That message tells us which of the three it is.

    If this helped, please click Accept Answer so others linking Access to Azure SQL can find it.

    Reference: https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server

    Was this answer helpful?

    0 comments No comments

  3. Alberto Morillo 35,506 Reputation points MVP Volunteer Moderator
    2026-09-30T04:12:27.1766667+00:00

    Hello,

    For your Microsoft Access linked-table connection to Azure SQL Database, I recommend testing with Microsoft ODBC Driver 18 for SQL Server instead of SQL Server Native Client.

    SQL Server Native Client is a legacy driver that Microsoft no longer recommends for new application development. Microsoft recommends the newer Microsoft ODBC Driver for SQL Server for applications using ODBC. Updating the driver is a useful first troubleshooting step, although it does not by itself establish the cause of your connection problem.

    Please try the following:

    Install Microsoft ODBC Driver 18 for SQL Server on the computer running Access, using Microsoft’s ODBC Driver download page. Choose the installer for your Windows architecture. On x64 Windows, the x64 installer includes both the 64-bit and 32-bit drivers, so it also supports applications using the 32-bit driver. learn.microsoft.com

    1. Create a new ODBC data source using the new driver. In Access, start the ODBC import/link wizard, choose Link the data source by creating a linked table, and create a new DSN. Select ODBC Driver 18 for SQL Server, rather than SQL Server Native Client. Enter your Azure SQL server name, authentication details, and the application database name rather than leaving the database set to master. Microsoft’s Access documentation describes this DSN and linked-table workflow, although its driver-version examples are older. Microsoft Support Keep encryption enabled and certificate validation in place. For Driver 18, Encrypt=Yes and TrustServerCertificate=No provide an encrypted connection with server-certificate validation. Do not disable certificate validation simply to make a connection error disappear. Microsoft Learn Run “Test Data Source,” then try linking one table using the new DSN. I suggest doing this in a copy of your Access database first. Explicitly select the new data source for the test rather than reusing the Native Client connection. This will help establish whether the problem persists with the newer driver. Microsoft Support

    Why the newer driver can help

    Microsoft’s ODBC driver supports idle connection resiliency with Azure SQL Database. Under supported conditions, it can restore an idle connection that was interrupted, with reconnection behavior controlled by ConnectRetryCount and ConnectRetryInterval. This is useful for some temporary connection interruptions, but it is not the same as automatically retrying every failed query or transaction. In particular, it does not prove that a failure while initially creating the linked-table connection is a transient error. Microsoft Learn

    Luke Chung’s FMS article, Microsoft Access and Cloud Computing with SQL Azure Databases, also recommends avoiding legacy drivers and illustrates the Access-to-Azure SQL linking process. Its screenshots and version references are older, so use the current Microsoft driver download rather than treating those older versions as the recommendation today. FMS Inc.

    After testing with Driver 18, does Test Data Source succeed? If it still fails, please share the complete error returned by that test, including the SQLSTATE and SQL Server error number, with passwords and other sensitive details removed.

    Drafted with assistance from ChatGPT and reviewed by me.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.