r/SQLServer • • 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?

4 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/FranceRocks2 May 12 '26

Wow, this is very kind of you to spend time on this, and reply. Thank you!

EXEC sp_testlinkedserver

That might be a good one to prime. That may suffice. We are also going to add the sql that SQL Management studio does to wake it up, but that proc might do the trick by itself. Thanks!!!!

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.

I love the suggestion, by the way. I will check this in the morning.

Can you please

Here you go:

Microsoft SQL Server 2017 (RTM-GDR) (KB5084819) - 14.0.2105.1 (X64) Mar 13 2026 01:00:28 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 19045: ) (Hypervisor)

Thank you again for your help and input. I really appreciate it!

2

u/VladDBA ‪ ‪Microsoft MVP ‪ ‪ May 12 '26

Looks like you're on the RTM + GDR update path, meaning that you have all the urgent security updates (through the GDR patch), but are missing 31 cumulative updates (which generally consist of bug fixes and performance improvements).

I generally have strong feelings against being on RTM because it tends to have some fairly noticeable bugs that are ironed out in the subsequent cumulative updates.

Unfortunately, you'll have to first uninstall the GDR patch, then install CU31, and only after that reinstall the GDR patch.

https://learn.microsoft.com/en-us/troubleshoot/sql/releases/download-and-install-latest-updates#sql-server-2017

1

u/FranceRocks2 May 12 '26

Thank you!