Forum Discussion

danevald's avatar
danevald
Copper Contributor
Oct 20, 2023

ODBC from Access to SQL Server database - query timeout expired

I am having issues connecting to a database located on a SQL Server 2022.

When creating the connection all test gives OK. But when trying to connect, it fails with:

 

ODBC--call failed

"Query timeout expired" 

 

If I don't define the database, then Access connects to master db and lists the tables that I can access. So it seems the connection to the server itself is ok.

 

Tried ODBC SQL server driver, SQL Server 17 and 18 odbc driver, all same results.

Same database on SQL Server 2014 also does not work for my user, but another user has previously been able to connect to old database, but seems something is missing either client-side or server option in the new setup?

8 Replies

  • George_Hepworth's avatar
    George_Hepworth
    Silver Contributor
    This sounds like a problem with credentials. Depending on which Logins and Users you have given permission to, they'll be able to connect to one or more databases on the server. Do you have a DBA for the SQL Server with whom you can sort this out?
    • Tom_van_Stiphout's avatar
      Tom_van_Stiphout
      Steel Contributor
      I agree with George. Use SSMS to test your credentials and rights to connect to certain databases. Only after that is successful would you turn to Access to do the same.

Resources