Link to home
Start Free TrialLog in
Avatar of Ian Wallace
Ian Wallace

asked on

Linking MS Access To Azure SQL Tables

Hi,

I have been using MS Access with MS SQL for years and have a robust routine in place for linking tables when the MS Access database is opened (It needs to do this as the user can run the database in live or test mode which connect to different SQL databases).

I've recently picked up a project where the client want to use Azure SQL as the data source but when I try to connect I get the message Run-time error '3170': Could not find installable ISAM.

I've tried several methods of linking the table and get the same message every time - apart from one - If I create an ODBC connection to the Azure SQL database and then link through the ODBC it works, but asks me for the user name and password every time I want to do anything with it.  

I have to use SQL authentication as the majority of the users will be running the Access database on their home PCs so don't have Active Directory user accounts.

Any help would be appreciated!
Avatar of Anders Ebro (Microsoft MVP)
Anders Ebro (Microsoft MVP)
Flag of Denmark image

You are on the right path with an ODBC connection, and creating the linked table that way.

Here you can see how you can avoid saving the password with the linked table:
https://www.microsoft.com/en-us/microsoft-365/blog/2011/04/08/power-tip-improve-the-security-of-database-connections/
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ian Wallace
Ian Wallace

ASKER

Hi John,

Thanks for your response, the link you provided definitely worked and I now have the table linked but I now have another issue.

I can add data to my linked table but when I try to edit the data, I get the following message;

User generated imageAny ideas?

Thanks.

https://www.experts-exchange.com/questions/29215266/Linking-MS-Access-To-Azure-SQL-Tables.html#a43284853 https://www.experts-exchange.com/questions/29215266/Linking-MS-Access-To-Azure-SQL-Tables.html#a43284853
You need to make sure the linked table contains a primary key, and I always add a Timestamp (rowversion) column to every table.  This is used by SQL Server to help with write conflicts.

This should help with the occurrence of the above error.
The table has a primary key defined.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorted - thanks for your help gents!!