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/VladDBA Microsoft MVP May 11 '26
It kinda sounds like Access might require a 1-2 connection attempts for it to become responsive.
Is the server on which the Access database resides using either Balanced or Power Saving modes?
If that's the case, try changing to High Performance mode.
If not, then see if you can add a pre-step that does one or two connection tests to "wake up" the Access database and only proceed if the connection test is successful
That SQL Server process just crashing part sounds a bit weird.
Can you please provide the output of (executed in SSMS against said instance)