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 tim...
George_Hepworth
Oct 20, 2023Silver 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_StiphoutOct 20, 2023Iron 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.
- danevaldOct 21, 2023Copper Contributor
Tom_van_Stiphout George_Hepworth credentials work great with SSMS, all tables are visible - still not with ODBC.
- Tom_van_StiphoutOct 21, 2023Iron ContributorUse the ODBC applet (under Control Panel) to create a File DSN using the same ODBC driver. On the last page of the wizard you can test the connection. Does that work?