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
- 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.