Access Database Migration to Azure SQL DB fails

Stephan Hölzer 20 Reputation points
2025-09-22T08:09:21.9833333+00:00

I tried to connect the Azure SQL database to my Access program. Unfortunately, I always get this error when I select DB as the schema in ODBC.

Using other methods, I can only select the “master” or “Default” schema, and then the tables are not there.

My Access is up to date an also my ODBC driver. I thought picking Azure DB would work out of the box.

User's image

User's image

Azure SQL Database

Answer accepted by question author
Amira Bedhiafi 43,046 Reputation points MVP Volunteer Moderator
2025-09-22T12:11:51.1166667+00:00

Hello Stefan !

Thank you for posting on Microsoft Learn.

You can fix your it by connecting directly to your target database with a modern SQL Server ODBC driver and a contained user. Instead of browsing for databases OR schemas, you can create a contained user in the target DB so you avoid using the server admin whose default DB is master:

-- Run in your TARGET database, not master
CREATE USER app_access WITH PASSWORD = 'Strong#Password123!';
ALTER ROLE db_datareader ADD MEMBER app_access;
ALTER ROLE db_datawriter ADD MEMBER app_access;
ALTER USER app_access WITH DEFAULT_SCHEMA = dbo;

Or create a DSN that pins the database (Access then External Data then ODBC Database then Machine Data Source then New):

  • Driver: ODBC Driver 18 for SQL Server (not the legacy SQL Server driver).
  • Server: yourserver.database.windows.net
  • Authentication: SQL login app_access / password
  • Click Options and set Database = YourDatabaseName
  • Encrypt = Yes and Trust Server Certificate = No (Driver 18 defaults are fine).

Equivalent connection string for File DSN or linked table manager:

Driver={ODBC Driver 18 for SQL Server};
Server=tcp:yourserver.database.windows.net,1433;
Database=YourDatabaseName;
Uid=app_access;Pwd=Strong#Password123!;
Encrypt=yes;TrustServerCertificate=no;

Then link tables in Access, under External Data then ODBC Database then Link to the data source then choose your DSN.

When Access asks for owner, pick dbo. Your tables should appear.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.