Recently, ODBC connections to our database in Azure no longer show all available tables.

Neal Freeman 0 Reputation points
2025-02-19T13:49:18.2133333+00:00

When trying to add a linked table to our Azure DB in Microsoft Access via ODBC, recently I've started getting the following error message:

OBDB--call failed.

[Microsoft][ODBC SQL Server Driver][SQL Server]Reference to database and/or server name in 'master.sysdatabases' is not supported in this version of SQL Server. (#40515)

This comes up also when I try to re-link existing tables. Those tables still open fine, but I'm unable to add additional tables from the same database. How to solve?

I'm using the latest ODBC driver on an up-to-date Windows 11 machine.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 28,211 Reputation points MVP
    2025-02-19T16:11:15.1966667+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    This error occurs because your Microsoft Access setup is trying to reference master.sysdatabases, which is not allowed in azure SQL db. Unlike on-premises SQL Server, azure SQL db does not support querying system objects like sysdatabases in the master database. Try using sys.databases in the master database or sys.objects within the target database. However, Access might be generating queries internally that you can't modify, so the following fixes may work better.

    Try if any of the below gives you some progress in fixing the issue.

    1. Try using ODBC Driver 17 instead of 18.
    2. Check your Access version (Office 365 / 2019 / 2021).
    3. Verify firewall settings in Azure SQL Server to allow your IP.

    Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.


Your answer

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