r/SQLServer • u/FranceRocks2 • May 11 '26
Question SQL Server join against linked server mapping to MS Access database works sometimes, sometimes crashes the SQL Server instance.
There is a legacy MS Access database that has a table needed for a query. Occasionally when accessing the table from SQL Server, the SQL Server instance just crashes. In other words, the SQL Server process is killed and noone can access sql server until it is restarted. Some of the information I have read say it is a known issue, and recommended using OPENQUERY as opposed to prefacing the database name with the linked server. That seems to work better, however even OPENQUERY crashes sql server sometimes. What seems to always best is if I manually in SQL Mgmt studio expand the linked server to display the tables. However we have an automatic process that needs to run without any manual intervention. Any suggestions for manual queries to 'prime' sql server so it does not crash when accessing that data?
View all comments
Show parent comment
2
u/FranceRocks2 May 11 '26
Thank you for taking the time to respond. The SQL process dies, no error in the error log. I have to restart the SQL Server instance.
To be clear, we moved past using the join directly against Access tables directly last week. We now have a script that already pulls rows from MS Access into a staging table in another SQL Server instance, then once that works, the script push those rows into a table in the production sql server instance, so the app can do the join there. It's the pull of the data from Access into the staging table in sql server that crashes. We thought openquery would solve it but then it started crashing again.
Since going through sql management studio manually and expanding the linked server seems to prime it consistently so far without a crash, we are going to look at capturing what studio sends and then probably do that before the sync. Next option is to push it from the Access side if possible, and last option is to see if we can convert at least that table from the Access backend into SQL Server.
Any other thoughts welcome. Thank you very much for your response.