Forum Discussion
danevald
Oct 20, 2023Copper Contributor
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
Sort By
- George_HepworthSilver ContributorThis 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_StiphoutSteel ContributorI 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.
- danevaldCopper Contributor
Tom_van_Stiphout George_Hepworth credentials work great with SSMS, all tables are visible - still not with ODBC.